GithubHelp home page GithubHelp logo

Comments (4)

zyndagj avatar zyndagj commented on August 22, 2024

I have a feeling you're not giving it a file because you first set

INgzbam="${!SGE_TASK_ID}"

but then use ${Ingzbam} (with a lowercase n) when running methratio.py. After fixing that, I would make sure that your SGE_TASK_ID corresponds to a valid (bam|bsp|sam) file.

from bsmapz.

Akshaygala avatar Akshaygala commented on August 22, 2024

Yes that indeed was the issue. Thank you. It reads the input file now but however, after running the script again, I get the following error:
"""

[methratio] @thu May 5 13:26:20 2022 Presorting inputs
[methratio] @thu May 5 13:26:20 2022 Calling samtools sort on S10.sorted.deduped.bam and using 4716 MB of memory
sort: invalid option -- '@'
sort: invalid option -- 'O'
sort: invalid option -- 'T'
open: No such file or directory
[bam_sort_core] fail to open file 64
open: No such file or directory
[bam_index_build2] fail to open the BAM file.
[methratio] @thu May 5 13:26:20 2022 Processing 64 chromosomes at a time
[methratio] @thu May 5 13:26:20 2022 Reading GL000194.1 from S10.sorted.deduped.tmpSrt.bam with samtools
[methratio] @thu May 5 13:26:20 2022 S10.sorted.deduped.tmpSrt.bam should have been presorted.

there is more and it just ends with "1 failed to process"
"""
I had already sorted and deduplicated bam files before processing the methratio.py.
I have activated both - 1) module for samtools in my cluster 2) given the PATH to samtools which came with BSMAPz installation.

from bsmapz.

zyndagj avatar zyndagj commented on August 22, 2024

I have a feeling it's because you're adding an old version of samtools to your path. Try commenting out

export PATH="/wynton/home/pillailab/agala/.local/bin/BSMAPz-1.1.3/samtools:$PATH"

so you can use samtools from the samtools/1.9 module and re-running.

from bsmapz.

Akshaygala avatar Akshaygala commented on August 22, 2024

Yes that was indeed the issue. Thank you for resolving it.

from bsmapz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.