Comments (7)
I'm experiencing the same problem I think. I'm using a CRAM file from Nebula. I converted CRAM to BAM:
samtools view -b -T GCA_000001405.15_GRCh38_no_alt_analysis_set.fna.gz -o NB6TK328_chr6.bam NB6TK328.cram chr6
then indexed bam file:
samtools index NB6TK328_chr6.bam
Then, with all files in a single folder, tried this:
sudo docker run humanlongevity/hla --sample_id NB6TK328 --input_bam_path ~/Desktop/NB6TK328_chr6.bam --output_path temp
but get error message:
[16/Nov/2020 18:31:02] INFO - Xie Chao's HLA typing algorithm
[16/Nov/2020 18:31:02] INFO - Sample_id: NB6TK328 Input file: /home/ubuntu/Desktop/NB6TK328_chr6.bam
typer.sh parameters: DELETE=false FULL=false
Extracting reads from S3
[E::hts_open_format] fail to open file '/home/ubuntu/Desktop/NB6TK328_chr6.bam'
samtools view: failed to open "/home/ubuntu/Desktop/NB6TK328_chr6.bam" for reading: No such file or directory
Traceback (most recent call last):
File "/opt/bin/run.py", line 64, in
check_call(bin_args)
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/opt/bin/typer.sh', '/home/ubuntu/Desktop/NB6TK328_chr6.bam', 'NB6TK328']' returned non-zero exit status 1
Appreciate if anyone can tell me what I'm doing wrong?
from hla.
Quick follow up to my question above - the problem was that the docker container couldn't access files outside the container. I revised the syntax to this, which worked:
sudo docker run -it -v ~/Desktop:/home -w /home humanlongevity/hla --sample_id NB6TK328 --input_bam_path NB6TK328_chr6.bam --output_path temp
from hla.
@icymiktreize
Do you see the file tests/test.bam
in your current folder - which is /h
according to the screenshot?
from hla.
@tanghaibao I get the same problem with icymiktreize . and I am sure that the bam file I used is in my current folder .so how can i fix the problem ? is there any other ways ?
from hla.
I fix my problem, by BWA-mem against hg38 reference not hg19 reference ,then I got the HLA type . now, I want to ask if xHLA only support hg38 reference not hg19 reference ?
from hla.
@yaruchen Currently yes - and ideally for consistency, the hg38 reference should not contain ALTs or any HLA contigs. Otherwise, the reads may need to be realigned. See discussion here.
https://github.com/humanlongevity/HLA/wiki/BAMs-compatible-with-xHLA
from hla.
I was able to generate BAM/index files and process them following @rhdolin's information above, and I was also able to run Nebula CRAM files directly. The following format simplified things for me and seemed to work well:
sudo docker run -it -v `pwd`:`pwd` -w `pwd` humanlongevity/hla --sample_id NG1092V0RF --input_bam_path NG1092V0RF.cram --output_path temp
From Docker command line docs: "The -v flag mounts the current working directory into the container. The -w lets the command being executed inside the current working directory, by changing into the directory to the value returned by pwd. So this combination executes the command using the container, but inside the current working directory."
from hla.
Related Issues (20)
- xHLA:for non-human samples
- problem when run get-reads-alt-unmap.sh
- Typing of DQA1 and DPA1 HOT 1
- Why xHLA does not work for test.bam HOT 1
- HLA Typing with 10X scRNAseq data (5' chemistry)
- [E::bwa_idx_load_from_disk] fail to locate the index files when running HOT 4
- Python 3 support HOT 2
- full resolution result strange
- An irreproducibility of some results HOT 1
- error in more$solution $ operator is invalid for atomic vectors HOT 1
- Option --full doesn't work correctly HOT 3
- Error: Error detecting input file format. First line seems to be blank.
- Interpreting the result for matched T-N samples
- Non human-readable error for test data SRR6000626
- ? discussion of output values ?
- test run failed to read file from test folder
- Error in fread(align.path) : File is empty: hla-SU-DIPG_24/SU-DIPG_24.tsv Execution halted
- HLA? Why I need to learn this?
- some questions about genome version HOT 2
- Read length for xHLA HOT 1
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 hla.