0. BIOPYTHON mafIO ================== def mafParsing(self,chrName ): idx = MafIndex(chrName + ".mafindex", chrName + ".maf", "hg19." + chrName ) multiple_alignment = idx.get_spliced([60000] , [60020] , strand = "-") AlignIO.write(multiple_alignment, "hg19_All.fa", "fasta") total_bases_tupBel1 = 0; for seqrec in multiple_alignment: if seqrec.id.startswith("tupBel1"): # mm4 tupBel1 tanvir # don't count gaps as bases ...