"""Concatenates all sequences in fasta file with the same transcript ID header and then outputs a list containing sequence headers (Transcript ID) and sequences that have been concatenated.
...
...
@@ -27,3 +27,33 @@ def exon_concatenation(
to_write_to_file.append(annotation)
to_write_to_file.append(read)
returnto_write_to_file
defexon_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.
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.