Skip to content

Commit

Permalink
various small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alpae committed Oct 30, 2024
1 parent 4f33ea6 commit c9e8470
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
12 changes: 6 additions & 6 deletions modules/local/xref_fetch/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ process FILTER_AND_SPLIT {
"""
oma-build -vv filter-xref \\
--xref $xref \\
--out-prefix ./xref-${source}- \\
--out-prefix ./xref-${source} \\
--format $format \\
--gs-tsv $gs_tsv \\
--tax-sqlite $tax_sqlite
Expand Down Expand Up @@ -65,7 +65,7 @@ process MAP_XREFS {
--source $source \\
--gs-tsv $gs_tsv \\
--tax-sqlite $tax_sqlite \\
--out xref.pkl \\
--out xref-${source}.pkl \\
--db $db \\
--seq-idx-db $seq_idx_db \\
--xref-source-db $src_xref_db
Expand Down Expand Up @@ -98,18 +98,18 @@ process COLLECT_XREFS {
process COMBINE_ALL_XREFS {
label "process_single"
container "dessimozlab/omabuild:nf-latest"
tag "Collecting xrefs for $source"
tag "Combining all xrefs into single hdf5 db"

input:
path xref_dbs

output:
tuple "XRef-db.h5", emit: xref_db_h5
path("XRef-db.h5"), emit: xref_db_h5

script:
"""
oma-build -vv combine-xrefs \\
--out "XRef-db.h5"
--out XRef-db.h5 \\
--xrefs $xref_dbs \\
"""
}
}
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ params {
// domains directory
known_domains = null
cath_names_path = "http://download.cathdb.info/cath/releases/latest-release/cath-classification-data/cath-names.txt"
pfam_names_path = "ftp://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.clans.tsv.gz"
pfam_names_path = "https://ftp.ebi.ac.uk/pub/databases/Pfam/current_release/Pfam-A.clans.tsv.gz"

// xref paths
xref_uniprot_swissprot = "https://ftp.ebi.ac.uk/pub/databases/uniprot/knowledgebase/uniprot_sprot.dat.gz"
Expand Down
3 changes: 2 additions & 1 deletion subworkflows/local/hdf5import/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ workflow IMPORT_HDF5 {
pw_h5 = null
}
if (params.known_domains != null) {
domains = Channel.fromPath(params.known_domains).collect()
domains = Channel.fromPath("${params.known_domains}/*")
cath_names = Channel.fromPath(params.cath_names_path)
pfam_names = Channel.fromPath(params.pfam_names_path)

ADD_DOMAINS(ADD_GENOMES.out.db_h5, domains, cath_names, pfam_names)
domains_h5 = ADD_DOMAINS.out.domains_h5
} else {
Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/xrefs/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ workflow MAP_XREFS_WF {
MAP_XREFS(map_xref_params, taxonomy_sqlite, tax_traverse_pkl)
grouped_by_source = MAP_XREFS.out.matched_xrefs
.groupTuple()
.map { source, map_resList, format, xrefList -> [source, map_resList, format, xrefList.flatten()]
.map { source, map_resList, format, xrefList -> [source, map_resList, format[0], xrefList.flatten()] }
COLLECT_XREFS(grouped_by_source)
xref_dbs_list = COLLECT_XREFS.out.xref_by_source_h5
.map{ source, db -> db}
Expand Down

0 comments on commit c9e8470

Please sign in to comment.