-
Notifications
You must be signed in to change notification settings - Fork 8
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
NextSV No Output #17
Comments
I have looked through each line of work.sh and came to a conclusion that /u/home/m/mdistler/project-zarlab/consensus/nextsv_output2/minimap2_bam/minimap2_bam2cram.sh is causing a problem, and this error just descends down. I have converted our BAM file to CRAM format. I used this command: /u/home/m/mdistler/scratch/samtools-1.3/samtools view -T /u/home/m/mdistler/project-zarlab/mouseBAM/chr19_new.fa -C -o test.cram nextsv_output2.minimap2.bam. |
Hello @543090lee, Best, |
As I mentioned in email, samtools 1.3 does not support -T argument
…On Tuesday, October 18, 2022, Li Fang ***@***.***> wrote:
Hello @543090lee <https://github.com/543090lee>,
Sorry for the inconvenience. Could you please share your command for
running NextSV?
Best,
Li
—
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNG3OBP4GFUVISDEG36FK3WDY7XLANCNFSM6AAAAAARDP6AMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I used the command: |
Upgrading to samtools1.16.1 creates a new error message Here are the commands I used: python nextsv2.py nextsv.cfg nextsv_output /u/home/m/mdistler/project-zarlab/mouseBAM Here is the error message. There seems to be an issue with the header of the bam, so samtools is unable to index it. (in bold below) (base) bash-4.2$ ./work.sh real 3m33.274s real 0m24.696s real 0m0.091s real 0m0.009s real 0m25.027s real 0m0.002s real 0m0.009s real 0m0.040s real 0m4.173s real 0m0.013s real 0m0.009s real 0m4.326s real 0m0.001s real 0m0.007s real 0m0.030s Thanks! |
The reason might be that some depending tools updated their commands. |
Hello @543090lee I updated NextSV to be compatible with the latest version of Sniffles v2 and also added a new SV caller (cuteSV) to the pipeline. If you still have issues, please feel free to let me know. Thanks ! |
@543090lee |
It seems that there are issues with your reference genome, because minimap2 reported the following:
Therefore, the alignment process failed. |
Hello, Sincerely, |
OK. There will be a |
minimap2 is not found. Please run it in the conda environment of nextsv. |
There are two issues:
|
You can reduce the |
When print first 20 lines, I get this
|
The first 20 lines are correct. I know this might be a modified reference genome. How about using the original reference genome to test the pipeline? |
Hello, This is the sample vcf file I got. |
Hello,
Thanks! |
Hello, .sh file in 2_aligned_bam: minimap2 --MD -t 2 -ax map-ont -N 10 /u/home/s/seichang/nextsv_input/chr19_new.fa /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fastq.gz /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fasta.gz | samtools view -@ 2 -bS - > /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.bam .sh file in 3_SV_calls: mkdir -p /u/project/zarlab/seichang/nextsv/nextsv_output/3_SV_calls/cuteSV_temp sniffles: sniffles --output-rnames --allow-overwrite --input /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.sorted.bam --vcf /u/project/zarlab/seichang/nextsv/nextsv_output/3_SV_calls/sample_name.minimap2.sniffles.vcf --reference /u/home/s/seichang/nextsv_input/chr19_new.fa --threads 2 Thank you for your help |
The file sizes look correct. Could you please run the two shell scripts manually and see if any errors are reported? |
For the sh file in 2_aligned_bam: (nextsv3) [seichang@login1 2_aligned_bam]$ ./run_minimap2.sample_name.sh sh file in the 3_SV_calls folder: (nextsv3) [seichang@login1 3_SV_calls]$ ./run_cuteSV_forminimap2.sample_name.sh For Sniffles: Opening for reading: /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.sorted.bam |
It looks like |
Hello, I got this error, and minimap2 wasn't found? Thank you |
Please run it in the conda environment of nextsv. |
Hello, (nextsv3) [seichang@login3 2_aligned_bam]$ minimap2 --MD -t 2 -ax map-ont -N 10 /u/home/s/seichang/nextsv_input/chr19_new.fa /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fastq.gz /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fasta.gz > /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.sam Thank you for your help |
ok. Please try the following command in the conda environment of nextsv
|
Hello, I got these results: 1.(nextsv3) [seichang@login1 2_aligned_bam]$ minimap2 --MD -t 2 -ax map-ont -N 10 /u/home/s/seichang/nextsv_input/chr19_new.fa /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fastq.gz > /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.sam [M::mm_idx_gen::2.6600.98] collected minimizers 2.(nextsv3) [seichang@login1 2_aligned_bam]$ minimap2 --MD -t 2 -ax map-ont -N 10 /u/home/s/seichang/nextsv_input/chr19_new.fa /u/project/zarlab/seichang/nextsv/nextsv_output/1_clean_reads/sample_name.clean.fasta.gz > /u/project/zarlab/seichang/nextsv/nextsv_output/2_aligned_bam/sample_name.minimap2.sam |
|
Hello, Thank you |
Also do you want me to remove the reference fasta file in the input folder when running the nextsv3.py or for running individual commands in the sh scripts? Thank you |
After successfully running the python command to get the output directory and work.sh, I ran the work.sh file. However, I got this output.
running script
1 input file(s):
output prefix: /u/home/m/mdistler/project-zarlab/consensus/nextsv_output/clean_reads/nextsv_output
processing input file: /u/home/m/mdistler/project-zarlab/mouseBAM/A_J.chr19.fastq
number of clean reads: 29888081
number of filtered reads: 0
1 input file(s):
/u/home/m/mdistler/project-zarlab/consensus/nextsv_output/clean_reads/nextsv_output.clean.fastq
output directory: /u/home/m/mdistler/project-zarlab/consensus/nextsv_output/longread_qc
/u/home/m/mdistler/project-zarlab/consensus/nextsv_output/clean_reads/nextsv_output.clean.fastq.gz exists -- overwrite (y/n)? y
real 3m11.933s
user 9m48.323s
sys 0m18.873s
first
[M::mm_idx_gen::3.4670.88] collected minimizers
[M::mm_idx_gen::4.0681.14] sorted minimizers
[M::main::4.0681.14] loaded/built the index for 1 target sequence(s)
[M::mm_mapopt_update::4.2941.13] mid_occ = 133
[M::mm_idx_stat] kmer size: 15; skip: 10; is_hpc: 0; #seq: 1
[M::mm_idx_stat::4.444*1.13] distinct minimizers: 8335668 (88.18% are singletons); average occurrences: 1.322; average spacing: 5.573
real 0m35.122s
user 1m39.821s
sys 0m13.164s
real 0m0.011s
user 0m0.004s
sys 0m0.005s
real 0m0.006s
user 0m0.001s
sys 0m0.002s
Traceback (most recent call last):
File "/u/scratch/m/mdistler/nextsv/bin/check_bam_and_remove_file.py", line 32, in
main()
File "/u/scratch/m/mdistler/nextsv/bin/check_bam_and_remove_file.py", line 23, in main
ret = subprocess.check_output([samtools, "quickcheck", "-vvv", out_bam_file], stderr=subprocess.STDOUT).decode()
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/subprocess.py", line 411, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/u/home/m/mdistler/project-jflint/anaconda3/lib/python3.8/subprocess.py", line 512, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/u/home/m/mdistler/hap.py-install/bin/samtools', 'quickcheck', '-vvv', '/u/home/m/mdistler/project-zarlab/consensus/nextsv_output/minimap2_bam/nextsv_output.minimap2.sorted.bam']' returned non-zero exit status 8.
real 0m35.400s
user 1m39.859s
sys 0m13.215s
second
/u/home/m/mdistler/project-zarlab/consensus/nextsv_output/sniffles_calls/sniffles.minimap2.nextsv_output.sh: line 3: /u/project/jflint/mdistler/anaconda3/lib/python3.8/site-packages/sniffles: Is a directory
real 0m0.003s
user 0m0.000s
sys 0m0.001s
real 0m0.041s
user 0m0.001s
sys 0m0.005s
third
real 0m0.074s
user 0m0.001s
sys 0m0.020s
ngmlr 0.2.7 (build: Jun 25 2018 10:17:59, start: 2022-10-11.16:21:35)
Contact: [email protected]
Writing output (SAM) to stdout
Reading encoded reference from /u/home/m/mdistler/project-zarlab/mouseBAM/chr19_new.fa-enc.2.ngm
Reading 61 Mbp from disk took 0.39s
Reading reference index from /u/home/m/mdistler/project-zarlab/mouseBAM/chr19_new.fa-ht-13-2.2.ngm
Reading from disk took 4.20s
Opening query file /u/home/m/mdistler/project-zarlab/consensus/nextsv_output/clean_reads/nextsv_output.clean.fastq.gz
Mapping reads...
Exception bad_alloc occured in thread 5. This usually means you ran out of physical or virtual memory (try ulimit -v)
Terminating
real 0m4.695s
user 0m0.119s
sys 0m0.594s
real 0m0.019s
user 0m0.001s
sys 0m0.008s
real 0m0.010s
user 0m0.000s
sys 0m0.004s
real 0m4.992s
user 0m0.163s
sys 0m0.636s
/u/home/m/mdistler/project-zarlab/consensus/nextsv_output/sniffles_calls/sniffles.ngmlr.nextsv_output.sh: line 3: /u/project/jflint/mdistler/anaconda3/lib/python3.8/site-packages/sniffles: Is a directory
real 0m0.004s
user 0m0.001s
sys 0m0.000s
real 0m0.047s
user 0m0.002s
sys 0m0.003s
real 0m0.956s
user 0m0.793s
sys 0m0.084s
end
I don't see any VCF files in sniffles_call, neither any output in nextsv_results folder.
Thank you for your help
The text was updated successfully, but these errors were encountered: