Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pyc
4 changes: 2 additions & 2 deletions BlobCollection.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ def parseCovFromSAMFile(self, lib_name, sam_file):
contig_base_cov[contig_name] = contig_base_cov.get(contig_name, 0) + sum_of_matchin_bases
for contig_id, base_cov in contig_base_cov.items():
if contig_id not in self.contigs:
sys.exit("[ERROR] - Sequence header %s in %s does not seem to be part of the assembly. FASTA header of sequence in assembly MUST equal reference sequence name in BAM file. Please check your input files." % (contig_id, bam_file))
sys.exit("[ERROR] - Sequence header %s in %s does not seem to be part of the assembly. FASTA header of sequence in assembly MUST equal reference sequence name in BAM file. Please check your input files." % (contig_id, sam_file))
else:
contig_cov = base_cov / self.contigs[contig_id].corrected_length
self.addBlobCov(contig_id, lib_name, contig_cov)
Expand Down Expand Up @@ -508,4 +508,4 @@ def writeOutput(self, version):
blobs_string += tax_string[0:-1]
blobs_string += "\n"
blobs_fh.write(blobs_string)
blobs_fh.close()
blobs_fh.close()
Binary file removed BlobCollection.pyc
Binary file not shown.
Binary file removed MiscFunctions.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# blobtools-light
Light version of the upcoming blobtools package
Light version of the blobtools package. No longer maintained ... please check out <a href="https://github.com/DRL/blobtools">blobtools</a>.

blobtools-light allows the visualisation of (draft) genome assemblies using TAGC (Taxon-annotated Gc-Coverage) plots (Kumar et al. 2012).

Expand Down
8 changes: 4 additions & 4 deletions makeblobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@ def getDictOfTaxDB(self, taxdb_dir):
if not taxdb_dir:
sys.exit("[ERROR] : Please specify the path to NCBI TaxDB.")
if os.path.exists(taxdb_dir):
if not os.path.exists(taxdb_dir + "nodes.dmp"):
if not os.path.exists( os.path.join(taxdb_dir, "nodes.dmp") ):
sys.exit("[ERROR] : 'nodes.dmp' from NCBI TaxDB could not be found in %s." %taxdb_dir)
if not os.path.exists(taxdb_dir + "names.dmp"):
if not os.path.exists( os.path.join(taxdb_dir, "names.dmp") ):
sys.exit("[ERROR] : 'names.dmp' from NCBI TaxDB could not be found in %s." %taxdb_dir)
else:
sys.exit("[ERROR] : NCBI TaxDB could not be found in %s." %taxdb_dir)
taxdb['nodes'] = taxdb_dir + "nodes.dmp"
taxdb['names'] = taxdb_dir + "names.dmp"
taxdb['nodes'] = os.path.join(taxdb_dir, "nodes.dmp")
taxdb['names'] = os.path.join(taxdb_dir, "names.dmp")
return taxdb

def getDictOfOutfiles(self, outprefix):
Expand Down