This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import glob | |
import os, sys | |
from Bio.SeqIO.QualityIO import FastqGeneralIterator | |
where = os.getcwd() | |
who = sys.argv[1] | |
for filename in glob.glob(os.path.join(where,who)): | |
count = 0 | |
infile = open(filename) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
from Bio import SeqIO | |
from Bio.SeqIO.QualityIO import * | |
import itertools | |
filename1 = sys.argv[1] ## Read in $File from .SH script | |
good_pairs = 0 | |
count = 0 | |
filename2 = filename1[:filename1.find("_R1_")] + "_R2_" + filename1[filename1.find("_R1_")+4:] ## take filename1 split it by the "_R1_" and replace it with "_R2" |