Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

checkM fails when using Singularity #25

Open
Shellfishgene opened this issue Sep 9, 2020 · 0 comments
Open

checkM fails when using Singularity #25

Shellfishgene opened this issue Sep 9, 2020 · 0 comments

Comments

@Shellfishgene
Copy link

Hi!

The first checkM step that defines the root dir does not work when using Singularity as those containers are read only, and that command tries to change a config file. A workaround is using the current biocontainer for checkM quay.io/biocontainers/checkm-genome:1.1.2--py_1, which includes the database. This however breaks the camitaxonomy.py script as the output is slightly different in this version of checkM I think. This in turn can be fixed by skipping lines starting with [ or Bin, for example by changing the code from line 199 onwards like this:

with open(args.checkm) as f:
        next(f)
        for line in f:
            li=line.strip()
            if ( not li.startswith("[") ) and ( not li.startswith("Bin") ):
                (_, name, _, _, _, completeness, contamination, strain_heterogeneity, genome_size, _, _, contigs, _, N50_contigs, _, _, _, _, gc_content, _, coding_density, _, predicted_genes, *_) = line.split('\t')
                sname = name[3:-(len(name)-name.index(" (UID"))]
                checkm_taxon_list.append(getTaxID(sname))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant