Comments (6)
I randomly downloaded one flowcell from the Nanopore WGS Consortium NA12878 and tried V2.1.0, but cannot re-produce the error. Could you send me your dataset so I can debug? Thanks!
from nanosim.
Thanks for the reply! Sure, the command I'm using is
python3 /lab01/Tools/NanoSim/src/read_analysis.py -I /nfs/.../rel3-nanopore-wgs-152889212-FAB45271.fasta -r /nfs/.../GRCh38_full_analysis_set_plus_decoy_hla.fa
I also randomly picked a file, the link is
http://s3.amazonaws.com/nanopore-human-wgs/rel3-nanopore-wgs-152889212-FAB45271.fastq.gz
I then gunzipped it and used seqtk to convert to fasta:
./seqtk seq -a /nfs/.../rel3-nanopore-wgs-152889212-FAB45271.fastq > /nfs/.../rel3-nanopore-wgs-152889212-FAB45271.fasta
from nanosim.
I downloaded the above file and converted it, but still, I didn't see any error. Our commands differ in the following steps:
-
./seqtk seq
I used-A
instead of-a
because the version I used doesn't have-a
option. Please check your fasta file and make sure it's correct. -
The reference genome maybe different. Mine doesn't have any patches, only 24 chromosomes. I don't think it should cause the problem, but try to remove the patches and give it a shot.
-
read_analysis.py
actually don't have-I
option, it's actually-i
, although I don't think it's the reason either.
Also, please check if your minimap2
run succeeded and make sure the .sam
file is not empty. If you still can't get rid of the error, please share your alignment file and I'll start from there.
from nanosim.
Hi Chen,
Sorry the LAST alignment took a few days.
I did two things:
- I first used NanoSim 1.3.0 which has the read_analysis.py unmodified, and it processed the same fasta file ok.
- I cut the first 100 line from fasta the file, and ran with NanoSim 2.1.0, it also runs ok.
So I think there should be something in the fasta file that's incompatible. To check the file is alright, I downloaded it again and went through the same procedure, the md5sum checks out, it's 1c1bb3fd8625cbb45e41c058422923ed. I'm also attaching a link of that file from google drive for your reference: https://drive.google.com/open?id=1dSEeMGrF64zFVnJfvI6ENnc-By8K_PeH
Thanks again for your help!
Anbo.
from nanosim.
I downloaded your attached fasta file and again, it worked for me. I suspect it's either Python or package incompatibility issue. My Python version is 3.6.3 and I also uploaded a requirements.txt
to this repo, including some key packages used in NanoSim 2.1.0. Please download the txt file and install them using conda with the command conda install --yes --file requirements.txt
. Let me know how it works. And I'd also like to know the versions of your packages so I can improve NanoSim. Thanks!
from nanosim.
Hi,
I have the package version as following:
python (3.6.3)
HTSeq (0.10.0)
numpy (1.14.5)
pybedtools (0.7.10)
pysam (0.14.1)
scipy (1.1.0)
six (1.11.0)
I ran NanoSim on another server and it runs successfully. I suspect it's because I'm running it on Centos 6.3 and the system is too old.
Thanks for the help tho!
from nanosim.
Related Issues (20)
- Could not retrieve index file for alignments HOT 2
- Abnormal error distribution in reads HOT 3
- Simulating exact number of reads for each input -- transcriptome mode HOT 2
- Reads come mostly from one chromosome only HOT 1
- hangs at start of simulation HOT 5
- Can NanoSim be applied to simulate single cell Nanopore reads HOT 1
- Invalid fastq format HOT 4
- mis.hist missing when running characterization stage
- file has no sequences defined (mode='r') - is it SAM/BAM format? Consider opening with check_sq=False HOT 1
- Nanosim hangs in the middle HOT 18
- Infinite loop in function extract_reads in metagenome mode when length equals max length HOT 2
- Transcriptome mode error rate tsv explanation HOT 2
- Models for R10.3 or R10.4 flow cell
- Option to specify desired read coverage or sequencing depth HOT 2
- ValueError: Found array with 0 sample(s) (shape=(0, 1)) while a minimum of 1 is required. HOT 6
- Please specify the training reads and its reference genome! HOT 3
- Stuck at simulation stage HOT 4
- simulator.py genome FileNotFoundError: [Errno 2] No such file or directory: 'training_model_profile' HOT 1
- NanoSim for tuning Minimap2 parameters? HOT 2
- Models for newer versions of Guppy with sup basecalls HOT 3
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 nanosim.