Skip to content
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

Can't import local files #8

Open
DuraSnow opened this issue Dec 30, 2018 · 2 comments
Open

Can't import local files #8

DuraSnow opened this issue Dec 30, 2018 · 2 comments

Comments

@DuraSnow
Copy link

problem like this:
cp: cannot stat '/genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz': No such file or directory
ERROR: could not cp /genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz to Ptrichocarpa_210_v3.0.gene.gff3.gz
preparing gff
cp: cannot stat '/genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz': No such file or directory
ERROR: could not cp /genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz to Ptrichocarpa_210_v3.0.gene.gff3.gz
importing gene models
cp: cannot stat '/genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz': No such file or directory
ERROR: could not cp /genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz to Ptrichocarpa_210_v3.0.gene.gff3.gz
verifying import

@rjchallis
Copy link
Contributor

The path to Ptrichocarpa_210_v3.0.gene.gff3.gz can either be a remote URL or a path that is available in the container filesystem. Just looking back at the docs I realise that the example files use a remote URL so I'll need to fix this and make sure there is an example for using local files.

In the docker run command, you need to mount a local directory to /import/data so you can keep the log files, etc. that are created during the import. These files will all be written to a subdirectory matching the core database name. If you are happy to have that subdirectory created alongside your existing data, you can mount your existing data directory using the -v option:

docker run \
    ... \
    -v /genomehubs/Phytozome/PhytozomeV12_unrestricted/Ptrichocarpa/v3.0:/import/data \
    ...

Then change the file path in your config file to:

[FILES]
    GFF = [ gff3 /import/data/annotation/Ptrichocarpa_210_v3.0.gene.gff3.gz ]

If you would prefer to keep these files elsewhere on your filesystem then mount a different directory to /import/data where the new files will be written and mount your data directory elsewhere on the container (e.g. /tmp/data) and change the file path in the config accordingly.

@DuraSnow
Copy link
Author

DuraSnow commented Jan 7, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants