Giter Club home page Giter Club logo

Comments (5)

aquaskyline avatar aquaskyline commented on May 29, 2024

If you are not using your own BED file or if you've used '--includingAllContigs' in callVarBamParallel.py, the 'chr' prefix will be taken care of by Clair.

For more information, could you please show the full command you have used?

from clair.

sbilobram avatar sbilobram commented on May 29, 2024

Thanks for reply. I will give samples of my commands but please understand that there is no "chr" in the reference or in the Sample and that seems to be the problem.
we are prefering to run Clair in a container but callVarBamParallel seems to create jobs for conda environment. First generate the commands with default chunk size:
/usr/bin/singularity exec --bind /projects/alignment_references,/projects/analysis/analysis34 clair.simg clair.py callVarBamParallel --chkpnt_fn ./ont/model --ref_fn hg19a.fa --bam_fn F00209_1_lane.bam --sampleName F00209 --threshold 0.2 --includingAllContigs --output_prefix call/var > commandList.pvm
So this list of commands has successfully returned the correct number of jobs partitioned over 10M intervals. They seem to be in Conda mode even though I entered the command from a container. I will list and run the first job:

cat commandList.pvm |head -3
echo "[INFO] --includingAllContigs enabled"

python /opt/conda/envs/clair-env/bin/clair/../clair.py callVarBam --chkpnt_fn "/projects/da_workspace/DA-630/ont/model" --ref_fn "/projects/da_workspace/DA-630/hg19a.fa" --bam_fn "/projects/da_workspace/DA-630/F00209_1_lane.bam" --threshold "0.2" --minCoverage "4" --pypy "pypy3" --samtools "samtools" --delay "10" --threads "4" --sampleName "F00209" --ctgName "1" --ctgStart "0" --ctgEnd "10000000" --call_fn "call/var.1_0_10000000.vcf"

The contig name is correct without "chr" but I will exchange the conda clair command into the equivalent container command.
but when I run I still get the error:

/usr/bin/singularity exec --bind /projects/alignment_references,/projects/analysis/analysis34 clair.simg clair.py callVarBam --chkpnt_fn "/projects/da_workspace/DA-630/ont/model" --ref_fn "/projects/da_workspace/DA-630/hg19a.fa" --bam_fn "/projects/da_workspace/DA-630/F00209_1_lane.bam" --threshold "0.2" --minCoverage "4" --pypy "pypy3" --samtools "samtools" --delay "10" --threads "4" --sampleName "F00209" --ctgName "1" --ctgStart "0" --ctgEnd "10000000" --call_fn "call/var.1_0_10000000.vcf"

Delay 2 seconds before starting variant calling ...
[main_samview] random alignment retrieval only works for indexed BAM or CRAM files.
No read has been process, either the genome region you specified has no read cover, or please check the correctness of your BAM input (/projects/da_workspace/DA-630/F00209_1_lane.bam).
[main_samview] random alignment retrieval only works for indexed BAM or CRAM files.
[INFO] Using 3 CPU threads
INFO:tensorflow:Restoring parameters from /projects/da_workspace/DA-630/ont/model
Restoring parameters from /projects/da_workspace/DA-630/ont/model
Calling variants ...
Processed 0 tensors
Total time elapsed: 0.00 s

I will try a few things more but could use some more suggestions. I have successfully run samples aligned with hg38 without problems so would like to understand what is going wrong here.
Thanks

from clair.

aquaskyline avatar aquaskyline commented on May 29, 2024

it seems your BAM file "/projects/da_workspace/DA-630/F00209_1_lane.bam" is not indexed, which is the reason why no tensor was generated.

from clair.

sbilobram avatar sbilobram commented on May 29, 2024

let me check and thank-you very much if this is the case....you would have made a lot of people happier....

from clair.

sbilobram avatar sbilobram commented on May 29, 2024

OKAy looks like it is working....I just had to link to the BAM indices... glad to have this worked out so easily.

Thanks very much!

from clair.

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.