From 67e1ad64f32563b3d6da4416502eb1ff77858d37 Mon Sep 17 00:00:00 2001 From: Samuel Mondal <mondal0000@> Date: Tue, 15 Nov 2022 15:03:20 +0100 Subject: [PATCH] docstring addition --- sequence_extractor/exon_concatenation.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/sequence_extractor/exon_concatenation.py b/sequence_extractor/exon_concatenation.py index ccc0103..5bfd28d 100644 --- a/sequence_extractor/exon_concatenation.py +++ b/sequence_extractor/exon_concatenation.py @@ -1,4 +1,14 @@ -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 = [] -- GitLab