Skip to content
Snippets Groups Projects
Commit 67e1ad64 authored by Samuel Mondal's avatar Samuel Mondal
Browse files

docstring addition

parent dbd01e27
No related branches found
No related tags found
1 merge request!20Changes
def exon_concatenation(filename):
def exon_concatenation(
filename: str
) -> list:
"""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.
Args:
filename: The name of the fasta file having multiple entries for the same transcript ID.
Returns:
A list with headers in the even indices and their corresponding sequences in the odd indices
"""
fa = open(filename,'r')
lines = fa.readlines()
to_write_to_file = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment