thoraxe.add_transcripts package
Submodules
thoraxe.add_transcripts.add_transcripts module
Functions to add user-defined transcript data from a CSV file to the previously downloaded Ensembl data.
- class thoraxe.add_transcripts.add_transcripts.Paths(input, tsl, exontable, sequences)
- exontable
Alias for field number 2
- input
Alias for field number 0
- sequences
Alias for field number 3
- tsl
Alias for field number 1
- thoraxe.add_transcripts.add_transcripts.add_sequences(input_df, seqrecords)
It modifies seqrecords by appending the new sequences.
- thoraxe.add_transcripts.add_transcripts.add_to_tsl(input_df, tsl_df)
It adds the new transcripts to the TSL table downloaded from Ensembl.
- thoraxe.add_transcripts.add_transcripts.check_input(input_df, exontable)
It raises an error if there is a problem with the user-defined transcripts.
- thoraxe.add_transcripts.add_transcripts.clean_dataframe(input_df)
Cleans and prepares input DataFrame: - Calculates cDNA start and end values - Removes NaN values - Converts numeric columns to Int64 - Sorts by TranscriptID and ExonRank
- thoraxe.add_transcripts.add_transcripts.get_output_paths(args)
Return a Paths namedtuple containing the input and output paths for add_transcripts.
- thoraxe.add_transcripts.add_transcripts.main()
Main script function to add user transcript data.
- thoraxe.add_transcripts.add_transcripts.merge_with_exontable(input_df, exontable)
Merges cleaned input_df with exontable.
- thoraxe.add_transcripts.add_transcripts.parse_command_line()
Parse command line.
It uses argparse to parse add_transcripts’ command line arguments and returns the argparse parser.
- thoraxe.add_transcripts.add_transcripts.read_exon_file(exon_table_file)
Read the exon_table_file and return a cleaned pandas DataFrame.
- thoraxe.add_transcripts.add_transcripts.read_fasta(sequences_path)
Returns a list of SeqRecord`s for the fasta file at `sequences_path.
- thoraxe.add_transcripts.add_transcripts.read_transcript_file(transcript_file)
Read the transcript CSV file and return a pandas DataFrame without modifications.
Module contents
add_transcripts: Add user-defined transcript data.
It adds the new transcripts to the data previously downloaded from Ensembl.