Comments (5)
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.
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.
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.
let me check and thank-you very much if this is the case....you would have made a lot of people happier....
from clair.
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)
- Specific use case HOT 1
- quality threshold advice HOT 1
- Clair and Clairvoyante having trouble with bam file from human transcript alignments HOT 1
- Automatically call SNPs for all contigs in fasta file? HOT 2
- model quantization experiments HOT 2
- Demo Error: Missing testingData HOT 2
- Any chance of a clair model trained on guppy >=3.6.0, and on guppy 4.4.2 with bonito? HOT 4
- ValueError: invalid literal for int() with base 10: 'CCA' HOT 1
- Quality cut off determination for CLR data HOT 1
- problem during training HOT 1
- sars-cov2 model HOT 1
- Models for guppy v5 basecalled Nanopore data HOT 1
- ONT R9.4.1 vs R10.3 HOT 1
- HETEROSNP is not defined in the header HOT 1
- Which Reference to use during Training? HOT 1
- downsampled BAM cannot download HOT 1
- Clair force calling using callVarBam calls more number of variants than included in a vcf file. HOT 3
- error using on HPC HOT 1
- cram file support ? HOT 1
- Running issue!!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clair.