Comments (5)
Hello,
on conda, you can just invoke hapog.py
as it will be in your PATH.
from hapo-g.
Hello,
on conda, you can just invoke
hapog.py
as it will be in your PATH.
Hi I ran the following command:
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta # Fasta file of the genome to polish
-b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam -o myse -t 48
and I got the following message:
usage: hapog [-h] --genome INPUT_GENOME [--pe1 PE1] [--pe2 PE2]
[--single LONG_READS] [-b BAM_FILE] [-u] [--output OUTPUT_DIR]
[--threads THREADS] [--bin HAPOG_BIN]
hapog: error: unrecognized arguments:
/var/spool/slurmd/job5287196/slurm_script: line 12: -b: command not found
What am I doing wrong?
from hapo-g.
Hi,
if you copied and pasted the entire command line you ran in your previous comment, you have forgotten to include line breaks. Basically, bash will understand that you tried to run the following two commands:
First one:
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta # Fasta file of the genome to polish
Second one:
-b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam -o myse -t 48
As you can see, these are probably not the ones you intended to run.
Instead, I recommend that you run (assuming the input files are correct):
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta -b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam -o myse -t 48
You can also use this multi-lines version (notice the new line breaks):
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta \
-b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam \
-o myse \
-t 48
from hapo-g.
Hi,
if you copied and pasted the entire command line you ran in your previous comment, you have forgotten to include line breaks. Basically, bash will understand that you tried to run the following two commands:
First one:
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta # Fasta file of the genome to polish
Second one:
-b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam -o myse -t 48
As you can see, these are probably not the ones you intended to run.
Instead, I recommend that you run (assuming the input files are correct):
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta -b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam -o myse -t 48
You can also use this multi-lines version (notice the new line breaks):
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta \ -b ../MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam \ -o myse \ -t 48
Hi,
I just did that; I used the following code:
hapog --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta \
-b /fs/scratch/PHS0338/appz/MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam \
-o myse \
-t 48
I even checked if hapo-g was installed in conda and it is, and I got the following error:
/var/spool/slurmd/job5303212/slurm_script: line 11: hapog: command not found
I am very confused because, when it was close to work the error was:
usage: hapog [-h] --genome INPUT_GENOME [--pe1 PE1] [--pe2 PE2]
[--single LONG_READS] [-b BAM_FILE] [-u] [--output OUTPUT_DIR]
[--threads THREADS] [--bin HAPOG_BIN]
hapog: error: unrecognized arguments:
/var/spool/slurmd/job5287196/slurm_script: line 12: -b: command not found
and now I am using hapog and it is not running.
from hapo-g.
Hello,
this is weird. I just checked on my system with a fresh installation and everything seems to work.
Here is what I think you should do:
- Create a fresh conda env for hapog (make sure you are in the base env while running this):
conda env remove --name hapog (replace hapog by the name of your conda env)
conda create -n hapog
conda activate hapog
conda install -c lbgb_cea hapog
- Execute hapog by invoking
hapog.py
which is the wrapper script (make sure that you are in the hapog conda env that you just created and installed hapog into):
hapog.py --genome /users/PHS0338/jpac1984/data/SuperExt.scaff.fasta \
-b /fs/scratch/PHS0338/appz/MaSuRCA-4.0.5/TGI_myse/SuperExt.scaff.fasta.alignSorted.bam \
-o myse \
-t 48
from hapo-g.
Related Issues (20)
- Conda install fails HOT 3
- Polish before or after Redundans HOT 1
- ModuleNotFoundError HOT 1
- Error with --threads 1 HOT 1
- Minimum coverage for correction? HOT 2
- PackageNotFoundError HOT 4
- How do I get a vcf file? HOT 2
- ERRORs when using newest version on conda HOT 1
- hapog introduce non-codon character in the polished sequence HOT 13
- Question: how HAPO-G handles N in reads? HOT 4
- Question: how about polishing a phased diploid genome assembly? HOT 2
- Memory issue HOT 5
- Explanation of hapog.changes HOT 1
- TypeError issue HOT 12
- long and short reads HOT 1
- Does HAPO-G correct ambiguous bases in fasta
- Error with --threads 1 - persisting HOT 4
- Plant genome HOT 7
- High RAM consumption in plant genome HOT 10
- Phased assembly polishing
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 hapo-g.