Closed s6juncheng closed 5 years ago
Hi Yuanhua,
there is a potential bug in FastaFile.rev_seq() function:
rev_seq("atgc") >>> 'cgta'
Some parts of the reference fasta file has lower case letters (repetitive regions), in which case it will be a bug. A possible better option will be
def rev_seq(seq): complement = {'A': 'T', 'C': 'G', 'G': 'C', 'T': 'A', "N": "N"} return '"".join([complement[base] for base in seq.upper()[::-1]])
Best, Jun
Hi Jun,
Many thanks for the kind suggestion. Just fixed this bug.
best, YH
Hi Yuanhua,
there is a potential bug in FastaFile.rev_seq() function:
Some parts of the reference fasta file has lower case letters (repetitive regions), in which case it will be a bug. A possible better option will be
Best, Jun