Skip to content

Commit

Permalink
updated mutation_loci file with minor edits, modified mv of failed fa…
Browse files Browse the repository at this point in the history
…stq files
  • Loading branch information
mezewudo committed Mar 26, 2018
1 parent 5b62d87 commit 55339ed
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
2 changes: 1 addition & 1 deletion bin/coverage_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
av_depth = depth/count
perc_cov = float((count/4411532.00)*100.00)
perc_cov_str = "{0:.2f}".format(perc_cov)
print "Unified Analysis Pipeline Version: UVPv2.4.1\n"
print "Unified Analysis Pipeline Version: UVPv2.5.1\n"
print "Average Genome Coverage Depth: " + str(av_depth)
print "Percentage of Reference genome covered: " + perc_cov_str
4 changes: 2 additions & 2 deletions bin/mutation_loci.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ ndh upstream Rv1854c upstream 2103043 2103183 intergenic reverse
katG upstream Rv1908c upstream 2156112 2156148 intergenic reverse
furA upstream Rv1909c upstream 2156593 2156705 intergenic reverse
Rv1979c upstream Rv1979c upstream 2223165 2223342 intergenic reverse
erm(37) upstream erm(37) upstream 2231455 2231679 intergenic forward
erm(37) upstream Rv1988 upstream 2231455 2231679 intergenic forward
pncA upstream Rv2043 upstream 2289242 2289281 intergenic reverse
blaC upstream Rv2068c upstream 2326810 2326943 intergenic reverse
mshC upstream Rv2130c upstream 2392460 2392516 intergenic reverse
Expand Down Expand Up @@ -74,7 +74,7 @@ gidB upstream Rv3919c upstream 4408203 4408333 intergenic reverse
ppsA upstream Rv2931 upstream 3243697 3245444 CDS forward
mas upstream Rv2940c upstream 3282716 3283334 intergenic reverse
Rv0191 upstream Rv0191 upstream 222162 222288 intergenic forward
Rv3008 upstream Rv3008 upstram 3366451 3366643 intergenic forward
Rv3008 upstream Rv3008 upstream 3366451 3366643 intergenic forward
Rv1667c upstream Rv1667c upstream 1894231 1895342 CDS reverse
proZ upstream Rv3756c upstream 4202614 4203299 CDS reverse
clpC1 upstream Rv3596c upstream 4040705 4040878 intergenic reverse
Expand Down
2 changes: 1 addition & 1 deletion scripts/UVP
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if __name__ == '__main__':
group6 = parser.add_argument_group('Optional', '')
group6.add_argument('-v', '--verbose', action='store_true', help='Produce status updates of the run.')
group6.add_argument('-h', '--help', action='help', help='Show this help message and exit')
group6.add_argument('--version', action='version', version='%(prog)s v2.4.1',
group6.add_argument('--version', action='version', version='%(prog)s v2.5.1',
help='Show program\'s version number and exit')


Expand Down
11 changes: 2 additions & 9 deletions scripts/UVP.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ def runVali(self):
if lined.startswith("Returning"):
comments = lined.split(":")
if comments[2] != " FASTQ_SUCCESS":
self.__CallCommand('mv', ['mv', self.input, self.flog])
self.__CallCommand('mv', ['mv', self.fOut, self.flog])
if self.paired:
self.__CallCommand('mv', ['mv', self.input2, self.flog])
self.__CallCommand('mv', ['mv', self.fOut, self.flog])
self.__logFH.write("Input not in fastq format\n")
i = datetime.now()
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input: " + self.input + "\t" + "not in fastq format\n")
Expand Down Expand Up @@ -212,15 +209,11 @@ def runKraken(self):
cov += float(fields[0])
fh1.close()
if cov < 90:
self.__CallCommand('mv', ['mv', self.input, self.flog])
self.__CallCommand('mv', ['mv', self.fOut, self.flog])
self.__CallCommand('rm', ['rm', self.kraken + "/kraken.txt"])
self.__logFH.write("not species specific\n")
i = datetime.now()
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input:" + "\t" + self.input + "\t" + "not species specific\n")
if self.paired:
self.__CallCommand('mv', ['mv', self.input2, self.flog])
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input:" + "\t" + self.input2 + "\t" + "not species specific\n")
sys.exit(2)

""" Aligners """
Expand Down Expand Up @@ -448,7 +441,7 @@ def runLineage(self):
lined = line.rstrip("\r\n")
i = datetime.now()
if "No Informative SNPs" in lined:
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input:" + "\t" + self.name + "\t" + "no clear lineage classification\n")
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input:" + "\t" + self.name + "\t" + "no MTBC lineage detected\n")
self.__unclear = "positive"
elif "no precise lineage" in lined:
self.__logFH2.write(i.strftime('%Y/%m/%d %H:%M:%S') + "\t" + "Input:" + "\t" + self.name + "\t" + "no clear lineage classification\n")
Expand Down

0 comments on commit 55339ed

Please # to comment.