Skip to content

Commit

Permalink
[ADD] subgenome info
Browse files Browse the repository at this point in the history
  • Loading branch information
alpae committed Dec 19, 2024
1 parent 0e8482a commit 1f09766
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/local/darwin_extract/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ process CONVERT_PROTEINS {
container "dessimozlab/omadarwin:nf-latest"

input:
tuple val(genome), path(dbpath)
tuple val(genome), path(dbpath), path(subgenome)

output:
path "${genome.UniProtSpeciesCode}.json", emit: prot_json
Expand All @@ -44,6 +44,8 @@ process CONVERT_PROTEINS {
dbpath := '${dbpath}';
tot_entries := ${genome.TotEntries};
tot_aa := ${genome.TotAA};
is_polyploid := '${genome.IsPolyploid}';
subgenome_path := '${subgenome}';
ReadProgram('\${CODE_REPOS_ROOT}/pyoma/pyoma/browser/build/convert_database.drw');
done
Expand Down
3 changes: 2 additions & 1 deletion subworkflows/local/extract_darwin/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ workflow EXTRACT_DARWIN {
def summaries = genomes_folder / "Summaries.drw"
def taxonomy = genomes_folder / "taxonomy.sqlite"
def splice_data = genomes_folder / "Splicings.drw"
def subgenome = genomes_folder / "SubGenomes.drw"
CONVERT_GS(genomes_folder, matrix_file, summaries)
CONVERT_GS.out.gs_tsv
| splitCsv(sep: "\t", header: true)
| map { row ->
def dbfile = file(row.DBpath)
return tuple( row, dbfile )
return tuple( row, dbfile, subgenome )
}
| transpose
| set { convert_jobs }
Expand Down

0 comments on commit 1f09766

Please sign in to comment.