Skip to content

Commit

Permalink
Merge pull request #112 from Cristianetaniguti/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Cristianetaniguti committed Jan 8, 2024
2 parents cf879bb + 0b4ffbe commit 000e48c
Show file tree
Hide file tree
Showing 12 changed files with 312 additions and 122 deletions.
2 changes: 1 addition & 1 deletion .dockerfiles/reads2map/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ RUN Rscript -e 'remotes::install_github("Cristianetaniguti/onemap")'
# Still privates
RUN Rscript -e 'remotes::install_github("Cristianetaniguti/simuscopR")'
RUN Rscript -e 'remotes::install_github("Cristianetaniguti/Reads2MapTools")'
RUN Rscript -e 'remotes::install_github("Cristianetaniguti/MAPpoly")'
RUN Rscript -e 'remotes::install_github("Cristianetaniguti/MAPpoly" )'
8 changes: 7 additions & 1 deletion pipelines/EmpiricalMaps/EmpiricalMaps.changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.3.1

* Make EmpiricalMaps for polyploids compatible with Reads2MapApp v0.0.2
* Polyploid map quality diagnostic by resampling
* Adapt regenotyping memory usage

# 1.3.0

* Add MAPpoly new functions framework_map and update_framework_map
Expand All @@ -7,7 +13,7 @@

# 1.2.5

* more flexibility to choose the probability to be used in the HMM:
* more flexibility to choose the probability to be used in the HMM:

* new parameters:
- global_errors: array with global errors to be tested
Expand Down
18 changes: 14 additions & 4 deletions pipelines/EmpiricalMaps/EmpiricalMaps.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ workflow Maps {
Array[String] global_errors = ["0.05"]
Boolean genoprob_error = true
Array[String] genoprob_global_errors = ["0.05"]
Int? repetitions
Int? sample_size
}

if (defined(filters)) {
Expand Down Expand Up @@ -190,7 +192,9 @@ workflow Maps {
ploidy = ploidy,
prob_thres = prob_thres,
filt_segr = filt_segr,
global_errors = global_errors
global_errors = global_errors,
repetitions = repetitions,
sample_size = sample_size
}
}

Expand All @@ -208,7 +212,9 @@ workflow Maps {
ploidy = ploidy,
prob_thres = prob_thres,
filt_segr = filt_segr,
global_errors = global_errors
global_errors = global_errors,
repetitions = repetitions,
sample_size = sample_size
}
}

Expand All @@ -226,7 +232,9 @@ workflow Maps {
ploidy = ploidy,
prob_thres = prob_thres,
filt_segr = filt_segr,
global_errors = global_errors
global_errors = global_errors,
repetitions = repetitions,
sample_size = sample_size
}
}

Expand All @@ -243,7 +251,9 @@ workflow Maps {
ploidy = ploidy,
prob_thres = prob_thres,
filt_segr = filt_segr,
global_errors = global_errors
global_errors = global_errors,
repetitions = repetitions,
sample_size = sample_size
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions pipelines/EmpiricalReads2Map/EmpiricalReads2Map.changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# 1.5.1

* Make EmpiricalMaps for polyploids compatible with Reads2MapApp v0.0.2
* Polyploid map quality diagnostic by resampling
* Adapt regenotyping memory usage
* Make BarcodeFaker task work for input files that do not finish with .fasta or .fq
* Adapt BarcodeFaker required memory and time
* Adapt STACKs required memory

# 1.5.0

* Adapt tassel and stacks tasks also for polyploids
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 1.4.4

* Make BarcodeFaker task work for input files that do not finish with .fasta or .fq
* Adapt BarcodeFaker required memory and time
* Adapt STACKs required memory

# 1.4.3

* Adapt tassel and stacks tasks also for polyploids
Expand Down Expand Up @@ -32,7 +38,7 @@
# 1.2.0

* Run freebayes parallelizing in nodes according to chromosomes and cores splitting in genomic regions
* Adjust runtimes
* Adjust runtimes
* Add polyploid dataset for tests

# 1.1.0
Expand Down
10 changes: 7 additions & 3 deletions subworkflows/mappoly_maps_empirical.wdl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version 1.0


import "../tasks/utilsR.wdl" as utilsR
import "../tasks/mappoly.wdl" as mappolyTasks

workflow MappolyMapsEmp {

input {
File vcf_file
String SNPCall_program
Expand All @@ -14,6 +14,8 @@ workflow MappolyMapsEmp {
String parent1
String parent2
Float? prob_thres
Int? repetitions
Int? sample_size
Int max_cores
Int ploidy
String? filt_segr
Expand Down Expand Up @@ -45,11 +47,13 @@ workflow MappolyMapsEmp {
ploidy = ploidy,
prob_thres = prob_thres,
filt_segr = filt_segr,
global_errors = global_errors
global_errors = global_errors,
repetitions = repetitions,
sample_size = sample_size
}

output {
File tar_gz_report = MappolyReport.results
File regeno_vcf = ReGenotyping.regeno_vcf
}
}
}
2 changes: 1 addition & 1 deletion tasks/freebayes.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ task RunFreebayes {
}

Int disk_size = ceil(size(reference, "GiB") + size(bam, "GiB") + 50)
Int memory_size = ceil(size(bam, "MiB") * 4 * max_cores + 10000)
Int memory_size = 350000

command <<<

Expand Down
Loading

0 comments on commit 000e48c

Please sign in to comment.