diff --git a/sequence_extractor/exon_concatenation.py b/sequence_extractor/exon_concatenation.py index d95ef0ac629adb5b3c66078f3877bd8eb22f518e..4a4b1c0e6d207dc2fea601df8ceec55abec1de02 100644 --- a/sequence_extractor/exon_concatenation.py +++ b/sequence_extractor/exon_concatenation.py @@ -1,13 +1,13 @@ def exon_concatenation( post_bedtools_fasta: str ) -> list: - """Concatenate all sequences starting with identical transcripit ID and outputs it as a list with sequence header (Transcript ID) and concatenated sequences. + """Concatenate all sequences starting with identical transcripit ID and outputs it as a list with sequence header (Transcript ID) and concatenated sequences as tuples. Args: post_bedtools_fasta: The name of the fasta file obtained after bedtools has been run Returns: - A list with transcript ID in even indices and corresponding concatenated exons in odd indices. + A list containing transcript ID and concatenated exons in tuples. """ with open(post_bedtools_fasta,'r') as fa: annotation = [] diff --git a/sequence_extractor/polyA.py b/sequence_extractor/polyA.py index 8c1715aa47adfcb8cf8ebd4435024b22e065506a..cafa91b35da1c6244dde04b565b49923c2120a4f 100644 --- a/sequence_extractor/polyA.py +++ b/sequence_extractor/polyA.py @@ -18,10 +18,10 @@ def polyA_generator( def polyA_addition_to_fasta_list( fasta_list: list, ) -> list: - """Takes in a list of alternate annotations and exons and outputs a list where polyA tail has been added to all the exon 3' ends. + """Takes in a list of tuples with annotations and exons and outputs a list where polyA tail has been added to all the exon 3' ends. Args: - fasta_list: List contaning annotations and exons, with every element being an equivalent to a line in the fasta file + fasta_list: List contaning tuples of annotations and exons Returns: A list like the initial list, this time with polyA tail added onto it.