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

updated docstrings

parent 834f7fbc
No related branches found
No related tags found
1 merge request!40updated docstrings
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 = []
......
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment