A standardized reference genome resource manager. See the documentation.
refgenie / refgenie_nfcore Goto Github PK
View Code? Open in Web Editor NEWNextflow plugin for refgenie compatibility
License: BSD 2-Clause "Simplified" License
Nextflow plugin for refgenie compatibility
License: BSD 2-Clause "Simplified" License
A standardized reference genome resource manager. See the documentation.
Hi,
I'm trying to use the post_update
hook to generate a nextflow.config
file with the refgenie genomes in it, basically copying the code from this repo here to a large extent.
I run into a KeyError for 'assets' in the rgc.list_assets_by_genome()
, which is the first function called, see here:
https://github.com/KevinMenden/tools/blob/refgenie/nf_core/refgenie.py
I can reproduce the error as follows:
genomes_config.yaml
(refgenie init -c genomes_config.yaml
)refgenie pull dm6/fasta
After running this code, the genomes_config.yaml
looks like this:
config_version: 0.4
genome_folder: /home/kevin/qbic/nfcore/refgenie_test
genome_servers:
- http://refgenomes.databio.org
genomes:
8baf9d24ad8f5678f0fe1f5b21a812d410755d49e3123158:
aliases:
- dm6
Running refgenie pull dm6/fasta
a second time after that works.
Any help would be appreciated!
Cheers,
Kevin
Here's the full traceback:
refgenie pull dm6/fasta
Compatible refgenieserver instances: ['http://refgenomes.databio.org']
No local digest for genome alias: dm6
Setting 'dm6' identity with server: http://refgenomes.databio.org/v3/genomes/genome_digest/dm6
Determined digest for local 'dm6' alias: 8baf9d24ad8f5678f0fe1f5b21a812d410755d49e3123158
Set genome alias (8baf9d24ad8f5678f0fe1f5b21a812d410755d49e3123158: dm6)
Traceback (most recent call last):
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 1482, in pull
genome = self.get_genome_alias_digest(alias=alias)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 1705, in get_genome_alias_digest
return self[CFG_GENOMES_KEY].get_key(alias=alias)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/yacman/alias.py", line 223, in get_key
raise UndefinedAliasError("No key defined for: {}".format(alias))
yacman.exceptions.UndefinedAliasError: No key defined for: dm6
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/attmap/ordattmap.py", line 45, in __getitem__
return super(OrdAttMap, self).__getitem__(item)
KeyError: 'assets'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kevin/anaconda3/envs/refgenie/bin/refgenie", line 10, in <module>
sys.exit(main())
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenie/cli.py", line 241, in main
rgc.pull(
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 1485, in pull
if not self.set_genome_alias(
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 1867, in set_genome_alias
set_aliases, removed_aliases = _check_and_set_alias(
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/yacman/yacman.py", line 165, in __exit__
self.write()
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 2627, in write
self.run_plugins(POST_UPDATE_HOOK)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 2604, in run_plugins
func(self)
File "/home/kevin/qbic/nfcore/refgenie_test/tools/nf_core/refgenie.py", line 82, in update_config
refgenie_genomes = print_nf_config(rgc)
File "/home/kevin/qbic/nfcore/refgenie_test/tools/nf_core/refgenie.py", line 33, in print_nf_config
abg = rgc.list_assets_by_genome()
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 1055, in list_assets_by_genome
else self.list(order, include_tags=include_tags)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 333, in list
[
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/refgenconf/refgenconf.py", line 337, in <listcomp>
list(self[CFG_GENOMES_KEY][g][CFG_ASSETS_KEY].keys()), key=order
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/attmap/pathex_attmap.py", line 56, in __getitem__
v = super(PathExAttMap, self).__getitem__(item)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/attmap/ordattmap.py", line 47, in __getitem__
return AttMap.__getitem__(self, item)
File "/home/kevin/anaconda3/envs/refgenie/lib/python3.9/site-packages/attmap/attmap.py", line 32, in __getitem__
return self.__dict__[item]
KeyError: 'assets'
this plug currently only handles default tagged assets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.