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

Add attributes mito_name and macs_gsize to fasta asset #2

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
30 changes: 30 additions & 0 deletions asset_classes/fasta_attributes_asset_class.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: fasta_attributes
version: 0.0.1
description: Sequences in the FASTA format, indexed FASTA (produced with samtools index), chromosome sizes file and attributes to Sequences in the FASTA file; mito_name (Mitocondrial chromosome name) and macs_gsize (Genome efective size).
seek_keys:
fasta:
value: "{genome}.fa"
description: FASTA file
type: file
fai:
value: "{genome}.fa.fai"
description: FASTA index file
type: file
chrom_sizes:
value: "{genome}.chrom.sizes"
description: Chromosome sizes file
type: file
dict:
value: "{genome}.dict"
description: FASTA Dictionary file
type: file
mito_name:
value: "{params.name}"
description: Mitocondrial chromosome name
type: string
macs_gsize:
value: "{params.name}"
description: Genome efective size
type: string
parents:
- fasta
30 changes: 30 additions & 0 deletions recipes/fasta_attributes_asset_recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: fasta_attributes
version: 0.0.1
output_asset_class: fasta_attributes
description:
Attributes to Sequences in the FASTA file.
mito_name (Mitocondrial chromosome name) and macs_gsize (Genome size).
inputs:
files: {}
params:
name:
description: Mitocondrial chromosome name
size:
description: Genome efective size
assets:
fasta:
asset_class: fasta
default: fasta
description: fasta asset for genome
container: docker.io/databio/refgenie
default_tag: ''
command_template_list:
mirpedrol marked this conversation as resolved.
Show resolved Hide resolved
test:
inputs:
name: "MT"
size: "2.7e9"
outputs:
mito_name:
value: "MT"
macs_gsize:
value: "2.7e9"