Skip to content

Commit ca7444b

Browse files
committed
change sims prefix to be universal and simpler
1 parent 456fcca commit ca7444b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,25 +688,25 @@ jobs:
688688
shell: micromamba-shell {0}
689689
run: |
690690
harpy simulate snpindel --quiet --snp-count 10 --indel-count 10 -z 0.5 test/genome/genome.fasta.gz
691-
harpy simulate snpindel --quiet --prefix Simulate/snpvcf --snp-vcf Simulate/snpindel/diploid/sim.snpindel.snp.hap1.vcf --indel-vcf Simulate/snpindel/diploid/sim.snpindel.indel.hap1.vcf test/genome/genome.fasta.gz
691+
harpy simulate snpindel --quiet --prefix Simulate/snpvcf --snp-vcf Simulate/snpindel/diploid/sim.snp.hap1.vcf --indel-vcf Simulate/snpindel/diploid/sim.indel.hap1.vcf test/genome/genome.fasta.gz
692692
- name: simulate inversions
693693
shell: micromamba-shell {0}
694694
if: always()
695695
run: |
696696
harpy simulate inversion --quiet --count 10 -z 0.5 test/genome/genome.fasta.gz
697-
harpy simulate inversion --quiet --prefix Simulate/invvcf --vcf Simulate/inversion/diploid/sim.inversion.inversion.hap1.vcf test/genome/genome.fasta.gz
697+
harpy simulate inversion --quiet --prefix Simulate/invvcf --vcf Simulate/inversion/diploid/sim.inversion.hap1.vcf test/genome/genome.fasta.gz
698698
- name: simulate cnv
699699
shell: micromamba-shell {0}
700700
if: always()
701701
run: |
702702
harpy simulate cnv --quiet --count 10 -z 0.5 test/genome/genome.fasta.gz
703-
harpy simulate cnv --quiet --prefix Simulate/cnvvcf --vcf Simulate/cnv/diploid/sim.cnv.cnv.hap1.vcf test/genome/genome.fasta.gz
703+
harpy simulate cnv --quiet --prefix Simulate/cnvvcf --vcf Simulate/cnv/diploid/sim.cnv.hap1.vcf test/genome/genome.fasta.gz
704704
- name: simulate translocations
705705
shell: micromamba-shell {0}
706706
if: always()
707707
run: |
708708
harpy simulate translocation --quiet --count 10 -z 0.5 test/genome/genome.fasta.gz
709-
harpy simulate translocation --quiet --prefix Simulate/transvcf --vcf Simulate/translocation/diploid/sim.translocation.translocation.hap1.vcf test/genome/genome.fasta.gz
709+
harpy simulate translocation --quiet --prefix Simulate/transvcf --vcf Simulate/translocation/diploid/sim.translocation.hap1.vcf test/genome/genome.fasta.gz
710710
711711
simulate_linkedreads:
712712
needs: [changes, pkgbuild]

harpy/simulate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def linkedreads(genome_hap1, genome_hap2, output_dir, outer_distance, mutation_r
219219
@click.option('--only-vcf', is_flag = True, default = False, help = 'If setting heterozygosity, only create the vcf rather than the fasta files')
220220
@click.option('-e', '--exclude-chr', type = click.Path(exists=True, dir_okay=False, readable=True), help = "Text file of chromosomes to avoid")
221221
@click.option('-o', '--output-dir', type = click.Path(exists = False), default = "Simulate/snpindel", show_default=True, help = 'Output directory name')
222-
@click.option('-p', '--prefix', type = str, default= "sim.snpindel", show_default=True, help = "Naming prefix for output files")
222+
@click.option('-p', '--prefix', type = str, default= "sim", show_default=True, help = "Naming prefix for output files")
223223
@click.option('--conda', is_flag = True, default = False, help = 'Use conda/mamba instead of container')
224224
@click.option('--setup-only', is_flag = True, hidden = True, show_default = True, default = False, help = 'Setup the workflow and exit')
225225
@click.option('--hpc', type = click.Path(exists = True, file_okay = False, readable=True), help = 'Directory with HPC submission `config.yaml` file')
@@ -340,7 +340,7 @@ def snpindel(genome, snp_vcf, indel_vcf, only_vcf, output_dir, prefix, snp_count
340340
@click.option('-g', '--genes', type = click.Path(exists=True, dir_okay=False, readable=True), help = "GFF3 file of genes to avoid when simulating")
341341
@click.option('-z', '--heterozygosity', type = click.FloatRange(0,1), default = 0, show_default=True, help = 'heterozygosity to simulate diploid variants')
342342
@click.option('-e', '--exclude-chr', type = click.Path(exists=True, dir_okay=False, readable=True), help = "Text file of chromosomes to avoid")
343-
@click.option('-p', '--prefix', type = str, default= "sim.inversion", show_default=True, help = "Naming prefix for output files")
343+
@click.option('-p', '--prefix', type = str, default= "sim", show_default=True, help = "Naming prefix for output files")
344344
@click.option('--only-vcf', is_flag = True, default = False, help = 'If setting heterozygosity, only create the vcf rather than the fasta files')
345345
@click.option('-o', '--output-dir', type = click.Path(exists = False), default = "Simulate/inversion", show_default=True, help = 'Output directory name')
346346
@click.option('--conda', is_flag = True, default = False, help = 'Use conda/mamba instead of container')
@@ -450,7 +450,7 @@ def inversion(genome, vcf, only_vcf, prefix, output_dir, count, min_size, max_si
450450
@click.option('--only-vcf', is_flag = True, default = False, help = 'If setting heterozygosity, only create the vcf rather than the fasta files')
451451
@click.option('-e', '--exclude-chr', type = click.Path(exists=True, dir_okay=False, readable=True), help = "Text file of chromosomes to avoid")
452452
@click.option('-o', '--output-dir', type = click.Path(exists = False), default = "Simulate/cnv", show_default=True, help = 'Output directory name')
453-
@click.option('-p', '--prefix', type = str, default= "sim.cnv", show_default=True, help = "Naming prefix for output files")
453+
@click.option('-p', '--prefix', type = str, default= "sim", show_default=True, help = "Naming prefix for output files")
454454
@click.option('--conda', is_flag = True, default = False, help = 'Use conda/mamba instead of container')
455455
@click.option('--setup-only', is_flag = True, hidden = True, show_default = True, default = False, help = 'Setup the workflow and exit')
456456
@click.option('--hpc', type = click.Path(exists = True, file_okay = False, readable=True), help = 'Directory with HPC submission `config.yaml` file')
@@ -561,7 +561,7 @@ def cnv(genome, output_dir, vcf, only_vcf, prefix, count, min_size, max_size, du
561561
@click.option('--only-vcf', is_flag = True, default = False, help = 'If setting heterozygosity, only create the vcf rather than the fasta files')
562562
@click.option('-e', '--exclude-chr', type = click.Path(exists=True, dir_okay=False, readable=True), help = "Text file of chromosomes to avoid")
563563
@click.option('-o', '--output-dir', type = click.Path(exists = False), default = "Simulate/translocation", show_default=True, help = 'Output directory name')
564-
@click.option('-p', '--prefix', type = str, default= "sim.translocation", show_default=True, help = "Naming prefix for output files")
564+
@click.option('-p', '--prefix', type = str, default= "sim", show_default=True, help = "Naming prefix for output files")
565565
@click.option('--conda', is_flag = True, default = False, help = 'Use conda/mamba instead of container')
566566
@click.option('--setup-only', is_flag = True, hidden = True, show_default = True, default = False, help = 'Setup the workflow and exit')
567567
@click.option('--hpc', type = click.Path(exists = True, file_okay = False, readable=True), help = 'Directory with HPC submission `config.yaml` file')

0 commit comments

Comments
 (0)