Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
298 commits
Select commit Hold shift + click to select a range
3ee8b5d
add tests with pacbcloud data (tmp)
stvdsomp Dec 17, 2025
6db208a
update testdata from nf-core/test-datasets repo
stvdsomp Dec 19, 2025
583f914
add local hificnv module
chaochaowong Oct 23, 2025
0d31ddd
add hificnv options to nextflow.config and hificnv workflow to pacvar.nf
chaochaowong Oct 23, 2025
13912e0
a
chaochaowong Oct 25, 2025
bfb6ca4
add subworkflows/local/bam_cnv_variant_calling
chaochaowong Oct 27, 2025
d5c29f0
add skip_cnv parameters to variant calling section in
chaochaowong Oct 27, 2025
19b5643
add hificnv citation
chaochaowong Oct 27, 2025
836eed6
update bcftools modules
chaochaowong Nov 5, 2025
6c6c484
update pbsv version to 2.11.0
chaochaowong Nov 6, 2025
e413108
add hificnv, sawfish, and pgcpgtools modules and update bcftools/index
chaochaowong Nov 24, 2025
57dc3c1
add skip_cpg parameter
chaochaowong Nov 27, 2025
86c2570
alias SAMTOOLS_INDEX for emited bam file from hiphase and pbsv
chaochaowong Nov 30, 2025
7197e66
update the hiphase module
chaochaowong Nov 30, 2025
248c15b
Index the hiphased bams and publish the index files to the `hiphase`
chaochaowong Nov 30, 2025
6077b6a
add phased_snp_bam_bai_ch for the use for pbcpgtools
chaochaowong Nov 30, 2025
03236d2
add PBCPGTOOLS_ALIGNEDBAMTOCPGSCORES process to the pipeline
chaochaowong Dec 1, 2025
322d3f9
append '.cpgscores' to the ext.prefix for
chaochaowong Dec 1, 2025
3bd8319
update nexflow_schema.json for newly-added parameters
chaochaowong Dec 1, 2025
f483b1d
add SAWFISH_DISCOVER to the subworflow of structural variant calling
chaochaowong Dec 4, 2025
fd6f3cb
prefix {meta.id}.sawfish as SAWFISH_DISCOVER output
chaochaowong Dec 4, 2025
89494d8
use phased snv vcf as the maf file for hificnv if skip_phase=false
chaochaowong Dec 10, 2025
f855a0f
use phased VCF as the maf file for sawfish/discover copy number variants
chaochaowong Dec 11, 2025
5df9c9f
keep maf_vcf_ch empty if !sn_caller='sawfish'
chaochaowong Dec 11, 2025
ee25177
fixed the comments in the subworkflow main.fn
chaochaowong Dec 14, 2025
3f4c795
add bcftools/view to convert sawfish's candidate.bcf to vcf in order to
chaochaowong Dec 18, 2025
6ac1ef2
publish sawfish/discover and sawfish/jointcall to different directories;
chaochaowong Dec 19, 2025
41defd3
Set ext.prefix for SAWFISH_DISCOVER and SAWFISH_JOINTCALL to
chaochaowong Dec 21, 2025
a36a2c1
Add cnv_excluded_regions and expected_cn bed file to the assets folder
chaochaowong Dec 21, 2025
61db018
added the cnv_excluded_regions and expected_cn path to igenomes.config
chaochaowong Dec 29, 2025
9381806
Added sawfish and pb-cpg-tools citations.
chaochaowong Dec 29, 2025
416c6b5
add test config for sawfish testing; set skip_cnv=true for all testing
chaochaowong Dec 29, 2025
cb0d298
update all modules including hiphase, pbsv, and sawfish
chaochaowong Jan 3, 2026
7f39ceb
fixed uncomformed workflow parameter, expected_cv_bed and
chaochaowong Jan 3, 2026
64ff390
set samtools/sort third index_formt input to be ''
chaochaowong Jan 4, 2026
dbd2dd3
remove `ch_versions =
chaochaowong Jan 4, 2026
d536352
remove TRGT_GENOTYPE.out.versions because no their version.yml are
chaochaowong Jan 4, 2026
8920de9
remove occurences of `ch_version.mix(...)` to adopt the topic-based
chaochaowong Jan 5, 2026
0350abc
resolve pbmerge issue after demultiplexing
stvdsomp Jan 7, 2026
6241e8f
resolve pre-commit errors
stvdsomp Jan 7, 2026
7b0be32
fix: update DeepVariant VCF index channel name; Switch from `vcf_tbi` to
chaochaowong Jan 9, 2026
cd81cb2
correct metamap after demultiplexing
stvdsomp Jan 9, 2026
769e029
cleanup pre-commit
stvdsomp Jan 9, 2026
d7d4f10
update README.md to include new features
chaochaowong Jan 9, 2026
915a2c3
edited README.md to correct feature descriptions
chaochaowong Jan 9, 2026
028a732
update output.md for newly-added sawfish, hificnv, and pbcpgtools
chaochaowong Jan 9, 2026
44e6b12
improve module description in output.md
chaochaowong Jan 9, 2026
c42b018
moved the deepvariant ouput descriptions right below GATK4
chaochaowong Jan 9, 2026
bed641a
fixed some typos in output.md
chaochaowong Jan 9, 2026
5175d80
fixed linting warnings: remove TODO, update version, version badges, …
chaochaowong Jan 10, 2026
f3736ae
fixed some linting errors
chaochaowong Jan 10, 2026
57d5e55
Template update for nf-core/tools version 3.5.1
chaochaowong Jan 10, 2026
f16ee47
Merge branch 'TEMPLATE' into mooksha
chaochaowong Jan 10, 2026
88ce09f
resolved nf-core/tools v3.5.1 template compliance issues
chaochaowong Jan 11, 2026
fa40723
removed cnv's subworkflow meta.yaml
chaochaowong Jan 11, 2026
4dab505
fixed a template compliance issue
chaochaowong Jan 11, 2026
11a328a
update CHANGELOG.md for PR #42
chaochaowong Jan 11, 2026
b98c329
pre-commit prettier edits
chaochaowong Jan 11, 2026
52947a4
Merge pull request #41 from stvdsomp/dev_pbmerge_post
chaochaowong Jan 13, 2026
81da91a
used the default interval from igenome.config for test_full
chaochaowong Jan 19, 2026
0119ade
Merge branch 'dev' into mooksha
chaochaowong Jan 19, 2026
3a6af0e
remove test_wgs_sawfish.config because test_full has included `sawfish`
chaochaowong Jan 20, 2026
ca71568
edit CHANGELOG.md and CITATIONS.md to reflect the addition of the
chaochaowong Jan 20, 2026
582a80e
fixed pre-commit error
chaochaowong Jan 20, 2026
507a2bd
add igenomes_ignore = true to test.config so that git CI can bypass
chaochaowong Jan 20, 2026
012673f
add igenome_base to re-direct git CI checking on
chaochaowong Jan 20, 2026
28fb92b
updated default.nf.test.snap
chaochaowong Jan 20, 2026
92af67f
update default.nf.test.snapshot
chaochaowong Jan 20, 2026
de142bb
updated karyotype.nf.test and pbmerge.nf.test snapshots
chaochaowong Jan 20, 2026
7c9da4f
disable multiqc AI features during CI testing; update all snapshots
chaochaowong Jan 20, 2026
52ac526
fixed pre-commit issues for tests/nextflow.config
chaochaowong Jan 20, 2026
610ecb4
ignore llms-full.txt and multiqc.parquet from CI testing and update all
chaochaowong Jan 21, 2026
c595d4a
updated all snapshots due to the changes in tests/.nftignore
chaochaowong Jan 21, 2026
d40581b
edit .nftignore to igore tbtk merged bam and update the snapshot
chaochaowong Jan 21, 2026
193c66b
added pbtk/*.{bam,bam.pbi} to tests/.nftignore and update snapshots.
chaochaowong Jan 21, 2026
af1841c
remove extra empty line in tests/.nftignore
chaochaowong Jan 21, 2026
b9edebe
updated repeat_id.nf.test snapshot
chaochaowong Jan 21, 2026
9bb4a2a
add updated metro to include the newly-added features
chaochaowong Feb 5, 2026
21374c3
bump verion 1.1.0dev
chaochaowong Feb 5, 2026
845cf69
add contributors in README.md
chaochaowong Feb 5, 2026
a37c91b
update test snapshots due to version bump (1.1.0dev)
chaochaowong Feb 5, 2026
6e3071f
edited CHANGELOG.md to reflect the module versions updates
chaochaowong Feb 7, 2026
edf4911
sawfish cites its published paper; HiFiCNV and pbsv are cited as soft…
chaochaowong Feb 8, 2026
8fb42ce
edited citation for lima and pbmm2
chaochaowong Feb 8, 2026
8f7ed8b
add minimal test for sawfish: test_wgs_sawfish.config
chaochaowong Feb 8, 2026
8c9afc5
add minimal test for sawfish
chaochaowong Feb 8, 2026
50d4bdb
fixed pre-commit error
chaochaowong Feb 8, 2026
5a79a9c
Update workflows/pacvar.nf
chaochaowong Feb 20, 2026
a6fa044
keep the orgiginal triggers line (line 18) from the template.
chaochaowong Feb 20, 2026
9a71b55
fixed harshil alignment
chaochaowong Feb 20, 2026
f752790
updated samtools/index with standardized version topic and fixed asso…
chaochaowong Feb 20, 2026
b257aa5
updates associated with samtools/index's version topic
chaochaowong Feb 20, 2026
5f385b0
clean up redundant .map operation when making bam_bam_maf_ch for hificnv
chaochaowong Feb 20, 2026
1fb8131
added `workflow.trace.succeeded().sized()` back to default.nf.test
chaochaowong Feb 21, 2026
23572b7
Fix meta.id mismatch between BAM and MAF in SV variant calling;
chaochaowong Feb 23, 2026
57bff14
allow .mmi as a valid reference input (fasta) pattern
chaochaowong Feb 23, 2026
4e047dc
Ensure the bam, bai, and maf channels share matching meta.id for SV
chaochaowong Feb 23, 2026
0c8bbea
Merge commit '4e047dcd4a0893d62f204d0607f9806bfeb522b9' into mooksha
chaochaowong Feb 24, 2026
5f49f0f
imporve formatting and channel naming convention in pacvar.nf
chaochaowong Feb 24, 2026
e41a4d1
Update subworkflows/local/bam_sv_variant_calling/main.nf for formatti…
chaochaowong Feb 24, 2026
61be488
Route sawfish output directories to ext.prefix as ${meta_id}_discover…
chaochaowong Feb 24, 2026
f8d9faa
Validate sv_caller parameter and standardize channel naming in
chaochaowong Feb 24, 2026
07069d2
Remove redundant comments on ch_versions previously related to TRGT and
chaochaowong Feb 24, 2026
eeaeb75
Update docs/output.md to reflect the correct output structure of
chaochaowong Feb 24, 2026
3108546
Improve output.md documentation
chaochaowong Feb 28, 2026
175601d
Fix pre-commit error in output.md
chaochaowong Feb 28, 2026
26c72a2
e-construct the Sawfish output directories to be sample-scoped:
chaochaowong Feb 28, 2026
a9901a7
Improve metro diagram color palette consistency across VCF files
chaochaowong Mar 1, 2026
3a3c5be
fix tool titles in metro diagram
chaochaowong Mar 1, 2026
e697933
kept tests/nextflow.config as clean as the original template.
chaochaowong Mar 5, 2026
75ea686
Edit docs/output.md to conform to the template format
chaochaowong Mar 5, 2026
c16ccba
Refine a curve in the metro diagram
chaochaowong Mar 5, 2026
98703b2
Fixed a pre-commit error
chaochaowong Mar 5, 2026
187ab40
Merge pull request #42 from chaochaowong/mooksha
chaochaowong Mar 7, 2026
5cfba99
Merge pull request #35 from tanyasarkjain/dev
tanyasarkjain Mar 8, 2026
e0defb6
move sample sheets used by tests/*.nf.test to tests/csv directory
chaochaowong Mar 9, 2026
bfb8c4d
add test_wgs_hificn.config for testing hificnv and sawfish with cnv
chaochaowong Mar 10, 2026
aceb5f8
modify the path of sample sheet and fasta file in test_wgs_hificnv.co…
chaochaowong Mar 10, 2026
d19fa2d
edit CHANGELOG.md
chaochaowong Mar 11, 2026
6fc45bd
fixed pre-commit errors
chaochaowong Mar 11, 2026
ea7122f
Merge pull request #43 from chaochaowong/enhance-testing
chaochaowong Mar 11, 2026
25c60ff
renamed pipepline parameter `skip_cnv` to `skip_hificnv`
chaochaowong Mar 13, 2026
5778a8f
update documentation
chaochaowong Mar 13, 2026
2154450
add fasta_fai to test_wgs_hificnv.config for testing
chaochaowong Mar 14, 2026
74a5ef2
Update nextflow.config to fix alignment
chaochaowong Mar 23, 2026
eedd30c
Update nextflow_schema.json to fix a typo
chaochaowong Mar 23, 2026
4c300d7
Update CHANGELOG.md
chaochaowong Mar 24, 2026
338f4d9
Merge pull request #44 from chaochaowong/rename-skip-cnv-to-skip-hificnv
chaochaowong Mar 24, 2026
ce7f99b
add ensembl-vep annotation feature
chaochaowong Apr 14, 2026
3e38a63
add ensemblvep.config and include vep-related params to pass to PACVA…
chaochaowong Apr 14, 2026
f47550b
update documentation and set default skip_annotation to false
chaochaowong Apr 15, 2026
c77c649
update output.md for vep
chaochaowong Apr 15, 2026
9f2ea30
update metro diagram
chaochaowong Apr 15, 2026
c23be04
update test configs to set skip_annotation=true, except test_full.config
chaochaowong Apr 15, 2026
0b1f0a9
fixed nextlfow_schema.json and test configs.
chaochaowong Apr 15, 2026
e6d6ccc
update documentation
chaochaowong Apr 16, 2026
ee06413
update credits in README.md
chaochaowong Apr 16, 2026
077120b
fixed some lints error
chaochaowong Apr 16, 2026
5216bd5
update documentation
chaochaowong Apr 16, 2026
7f9095a
Template update for nf-core/tools version 3.5.2
chaochaowong Apr 16, 2026
02b9352
Merge branch 'TEMPLATE' into add_annotation
chaochaowong Apr 16, 2026
4eda744
fix linting error
chaochaowong Apr 16, 2026
04e89f5
modified by pre-commit
chaochaowong Apr 16, 2026
e107b11
edited CHANGELOG.md
chaochaowong Apr 16, 2026
b77de2d
initialize vep_cache with default value if workflow=='repeat'
chaochaowong Apr 16, 2026
a3671ba
fix pre-commit error
chaochaowong Apr 16, 2026
b35aca9
fix linting error
chaochaowong Apr 16, 2026
b33521c
fix linting and pre-commit erros
chaochaowong Apr 16, 2026
019bd82
use nf-core subworkflow utils_annotation_cache instead of local
chaochaowong Apr 19, 2026
1d9ff76
add subworkflows/nf-core/vcf_annotate_ensemblvep
chaochaowong Apr 19, 2026
13923d9
use nf-core/subworkflow/vcf_annotate_ensemblvep instead of local
chaochaowong Apr 19, 2026
2ab5dc3
remove local subworkflow vcf_annotate_vep
chaochaowong Apr 19, 2026
157b6ee
change parameter skip_annotation to skip_ensemblvep
chaochaowong Apr 19, 2026
f57f6e7
updated CHANGELOG.md and fix HiFiCNV to take phased bam file if
chaochaowong Apr 20, 2026
8c5a8d5
change skip_annotation to skip_ensemblvep in test_.config files
chaochaowong Apr 20, 2026
7d01eaa
add test_wgs_ensemblvep.config
chaochaowong Apr 25, 2026
e54c440
fix pre-commit error
chaochaowong Apr 25, 2026
136f83a
Merge pull request #48 from chaochaowong/add_annotation
chaochaowong Apr 27, 2026
29b8551
fixed HiFiCNV and pb-CpG-tools output file name
chaochaowong Apr 23, 2026
e5db721
edit modules.config to allow the designated file name for cpg and cnv
chaochaowong Apr 23, 2026
84eb823
add ensemblvep process for sv's vcf
chaochaowong Apr 23, 2026
af4ce5e
add VCF_ANNOTATE_ENSEMBLVEP_CNV
chaochaowong Apr 23, 2026
025afbe
add ext.args to extend size of sv for ENSEMBLVEP_VEP modules:wq
chaochaowong Apr 24, 2026
fb15a15
direct ensemblvep output to snv, sv, or cnv depending the type of
chaochaowong Apr 24, 2026
bf008e0
fix mislabelled process
chaochaowong Apr 24, 2026
20d5b97
ensure vep_cache with ENSEMBLVEP_DOWNLOAD is a value channel, not a q…
chaochaowong Apr 25, 2026
1a1cbea
clean up debugging statements in pacvar.nfwq
chaochaowong Apr 27, 2026
d249ed6
edit nextlfow_schema.json for newly-added parameters
chaochaowong Apr 27, 2026
cf27f42
Update CHANGELOG.md
chaochaowong Apr 27, 2026
683bf58
edit more on CHANGELOG.md
chaochaowong Apr 28, 2026
f7381bf
update output.md
chaochaowong Apr 28, 2026
e2adb9d
update metro diagram
chaochaowong Apr 28, 2026
82d625f
use png format for metro diagram
chaochaowong Apr 28, 2026
0e128d4
enhance the metro diagram
chaochaowong Apr 28, 2026
a04b38b
fix a typo in metro map; correct a parameter name, download_vep_cache,
chaochaowong Apr 28, 2026
6c93f2d
add vep annotation for hificnv testing; add download_vep_cache for
chaochaowong Apr 29, 2026
91c268f
fix pre-commit errors
chaochaowong Apr 29, 2026
b2debdd
edit CHANGELOG.md
chaochaowong Apr 29, 2026
8ad2361
update CHANGELOG.md
chaochaowong May 1, 2026
13a9d3a
refactor VEP cache initialization
chaochaowong May 1, 2026
cbc5afe
Split VEP custom args by variant type
chaochaowong May 2, 2026
d338fa5
remove --force-overwrite from vep custom default args
chaochaowong May 2, 2026
636a288
fix typos
chaochaowong May 2, 2026
2cba0a2
fix pre-commit errors
chaochaowong May 2, 2026
99995af
update CHANGELOG.md
chaochaowong May 2, 2026
fb37f17
improve description for `outdir_vep_cache` parameter
chaochaowong May 2, 2026
3fb3be0
Strip the trailing .vcf suffix from VCF base names before passing
chaochaowong May 2, 2026
452098b
fix a comment in 'test_wgs_hificnv.config'
chaochaowong May 2, 2026
98f614e
fix a typo on output.md
chaochaowong May 2, 2026
2a4f911
add fibertools and addnuclesomes feature to the pipeline
chaochaowong May 2, 2026
e539db2
remove the alias for samtools_index in the bam_addnuclesomes_fibertools
chaochaowong May 2, 2026
54a8b1b
add documentation for fibertools/addnuclesomes feature
chaochaowong May 2, 2026
da87d6f
Add fibertools nucleosome extraction output
chaochaowong May 3, 2026
4b84ed1
update samtools/index to topic-based version
chaochaowong May 4, 2026
95d2572
Update samtools/index output channel references
chaochaowong May 4, 2026
bdd2b1f
update samtools/sort
chaochaowong May 4, 2026
54edac3
Adapt samtools/sort calls to updated reference input
chaochaowong May 4, 2026
62bc078
change the default for sv_caller to sawfish
chaochaowong May 4, 2026
3bfd764
Reuse samtools/sort reference tuple across samples
chaochaowong May 4, 2026
e2c7dc0
Renamed fasta_with_fai to fasta_with_fai_ch
chaochaowong May 4, 2026
c025c42
Merge pull request #52 from chaochaowong/add_vep_for_sv
chaochaowong May 5, 2026
7b9b981
add Fiber-seq m6A prediction option
chaochaowong May 19, 2026
5dda9f8
edited documentation and rename the fiberseq subworkflow to
chaochaowong May 19, 2026
d01c468
add fibertools/extract --m6a feature
chaochaowong May 20, 2026
0ea34fd
fix: avoid mixing predict-m6a version tuple into YAML versions
chaochaowong May 20, 2026
6c73a62
docs: update fibertools output filenames
chaochaowong May 20, 2026
f32c697
renamed the output of fibertoolsrs_addnuclesomes '*.add_nuc'
chaochaowong May 20, 2026
586778b
doc: fix the output file name of ft add-nucleosomes
chaochaowong May 20, 2026
30f0603
add two config files to test fibertools modules
chaochaowong May 21, 2026
56614fe
update topic-based fibertoolsrs modules
chaochaowong May 21, 2026
a89145f
[fix] adapt udpated topic-based fibertools modules
chaochaowong May 21, 2026
05d361f
fix pre-commit errors
chaochaowong May 21, 2026
43e258f
fix ext.args
chaochaowong May 22, 2026
d0f0e33
update metro map
chaochaowong May 22, 2026
e6e6d42
[doc] update README.md for fiberseq workflow overview and
chaochaowong May 22, 2026
2970027
update README.md for fiberseq workflow overview
chaochaowong May 22, 2026
7387f0e
update documentation
chaochaowong May 22, 2026
48ddb02
update snapshots
chaochaowong May 22, 2026
8ce075b
remove old metro map
chaochaowong May 22, 2026
e1be795
update metro map, added the extract components
chaochaowong May 22, 2026
7a12f5d
correct metro map
chaochaowong May 22, 2026
f18624b
Template update for nf-core/tools version 4.0.2
chaochaowong May 24, 2026
5c1c797
Merge branch 'TEMPLATE' into template_4.0.2
chaochaowong May 25, 2026
824cf0f
fix: align PACVAR workflow inputs after template merge
chaochaowong May 25, 2026
fdb7792
fix: update Nextflow channel factory syntax
chaochaowong May 25, 2026
3b172c1
doc: update CHANGELOG.md to reflect the changes in template_4.0.2
chaochaowong May 25, 2026
7910250
update modules to fix linting errors
chaochaowong May 25, 2026
7320934
chore: exclude deprecated DeepVariant wrapper from Nextflow lint
chaochaowong May 25, 2026
c4aa6f0
fix ext.args in test_fiberseq_with_kinetics.config
chaochaowong May 25, 2026
e137008
Merge pull request #53 from chaochaowong/add_fibertools
chaochaowong May 26, 2026
50cfea8
Merge branch 'dev' into template_4.0.2
chaochaowong May 27, 2026
e4b211c
added: doi and edited .gitignore
chaochaowong May 27, 2026
d744b8e
Merge pull request #54 from chaochaowong/template_4.0.2
chaochaowong May 29, 2026
e4794f8
bump version to 1.1.0 for release
chaochaowong May 28, 2026
f0f55d5
doc: update CHANGELOG.md
chaochaowong May 30, 2026
88bf379
update snapshots and CHANGELOG
chaochaowong May 30, 2026
6d8eb27
add GitHub handle of main contributors and significant reviewers
chaochaowong May 30, 2026
509f55b
fix: pre-commit errors
chaochaowong May 30, 2026
a60d795
doc: simplify v1.1.0 entry in CHANGELOG.md
chaochaowong Jun 2, 2026
9aed65f
fix pre-commit error
chaochaowong Jun 2, 2026
c7c4088
Merge pull request #55 from chaochaowong/bump-v1.1.0
chaochaowong Jun 3, 2026
4ae811a
doc: fix CHANGELOG to add release name and README.md to include fail bam
chaochaowong Jun 5, 2026
e2c0d15
dic: update changelog
chaochaowong Jun 5, 2026
176bc1d
fix change section in CHANGELOG
chaochaowong Jun 5, 2026
76e9de9
fix typos in README.md
chaochaowong Jun 6, 2026
5f39696
fix more typos in README.md
chaochaowong Jun 6, 2026
af1f50c
change release name to Kākāpō Awakens
chaochaowong Jun 6, 2026
e1199e3
fix typos in CHANGELOG.md
chaochaowong Jun 6, 2026
3bcf501
fix more typos
chaochaowong Jun 6, 2026
beb0ed2
Merge pull request #56 from chaochaowong/fix-changelog
chaochaowong Jun 8, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 15 additions & 14 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "nfcore",
"image": "nfcore/gitpod:latest",
"remoteUser": "gitpod",
"runArgs": ["--privileged"],
"image": "nfcore/devcontainer:latest",

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/opt/conda/bin/python"
},
"remoteUser": "root",
"privileged": true,

// Add the IDs of extensions you want installed when the container is created.
"extensions": ["ms-python.python", "ms-python.vscode-pylance", "nf-core.nf-core-extensionpack"]
}
"remoteEnv": {
// Workspace path on the host for mounting with docker-outside-of-docker
"LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}"
},

"onCreateCommand": "./.devcontainer/setup.sh",

"hostRequirements": {
"cpus": 4,
"memory": "16gb",
"storage": "32gb"
}
}
13 changes: 13 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

# Customise the terminal command prompt
echo "export PROMPT_DIRTRIM=2" >> $HOME/.bashrc
echo "export PS1='\[\e[3;36m\]\w ->\[\e[0m\\] '" >> $HOME/.bashrc
export PROMPT_DIRTRIM=2
export PS1='\[\e[3;36m\]\w ->\[\e[0m\\] '

# Update Nextflow
nextflow self-update

# Update welcome message
echo "Welcome to the nf-core/pacvar devcontainer!" > /usr/local/etc/vscode-dev-containers/first-run-notice.txt
37 changes: 0 additions & 37 deletions .editorconfig

This file was deleted.

125 changes: 0 additions & 125 deletions .github/CONTRIBUTING.md

This file was deleted.

4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ These are the most common things requested on pull requests (PRs).

Remember that PRs should be made against the dev branch, unless you're preparing a pipeline release.

Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/pacvar/tree/master/.github/CONTRIBUTING.md)
Learn more about contributing: [CONTRIBUTING.md](https://github.com/nf-core/pacvar/tree/master/docs/CONTRIBUTING.md)
-->

## PR checklist

- [ ] This comment contains a description of changes (with reason).
- [ ] If you've fixed a bug or added code that should be tested, add tests!
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/pacvar/tree/master/.github/CONTRIBUTING.md)
- [ ] If you've added a new tool - have you followed the pipeline conventions in the [contribution docs](https://github.com/nf-core/pacvar/tree/master/docs/CONTRIBUTING.md)
- [ ] If necessary, also make a PR on the nf-core/pacvar _branch_ on the [nf-core/test-datasets](https://github.com/nf-core/test-datasets) repository.
- [ ] Make sure your code lints (`nf-core pipelines lint`).
- [ ] Ensure the test suite passes (`nextflow run . -profile test,docker --outdir <OUTDIR>`).
Expand Down
69 changes: 69 additions & 0 deletions .github/actions/get-shards/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: "Get number of shards"
description: "Get the number of nf-test shards for the current CI job"
inputs:
max_shards:
description: "Maximum number of shards allowed"
required: true
paths:
description: "Component paths to test"
required: false
tags:
description: "Tags to pass as argument for nf-test --tag parameter"
required: false
outputs:
shard:
description: "Array of shard numbers"
value: ${{ steps.shards.outputs.shard }}
total_shards:
description: "Total number of shards"
value: ${{ steps.shards.outputs.total_shards }}
runs:
using: "composite"
steps:
- name: Install nf-test
uses: nf-core/setup-nf-test@4069fbbaabe94c08faba4ad261bfa88225ba133f # v2
with:
version: ${{ env.NFT_VER }}
- name: Get number of shards
id: shards
shell: bash
run: |
# Run nf-test with dynamic parameter
nftest_output=$(nf-test test \
--profile +docker \
$(if [ -n "${{ inputs.tags }}" ]; then echo "--tag ${{ inputs.tags }}"; fi) \
--dry-run \
--ci \
--changed-since HEAD^) || {
echo "nf-test command failed with exit code $?"
echo "Full output: $nftest_output"
exit 1
}
echo "nf-test dry-run output: $nftest_output"

# Default values for shard and total_shards
shard="[]"
total_shards=0

# Check if there are related tests
if echo "$nftest_output" | grep -q 'No tests to execute'; then
echo "No related tests found."
else
# Extract the number of related tests
number_of_shards=$(echo "$nftest_output" | sed -n 's|.*Executed \([0-9]*\) tests.*|\1|p')
if [[ -n "$number_of_shards" && "$number_of_shards" -gt 0 ]]; then
shards_to_run=$(( $number_of_shards < ${{ inputs.max_shards }} ? $number_of_shards : ${{ inputs.max_shards }} ))
shard=$(seq 1 "$shards_to_run" | jq -R . | jq -c -s .)
total_shards="$shards_to_run"
else
echo "Unexpected output format. Falling back to default values."
fi
fi

# Write to GitHub Actions outputs
echo "shard=$shard" >> $GITHUB_OUTPUT
echo "total_shards=$total_shards" >> $GITHUB_OUTPUT

# Debugging output
echo "Final shard array: $shard"
echo "Total number of shards: $total_shards"
Loading
Loading