Skip to content

Commit

Permalink
Remove unsused directories
Browse files Browse the repository at this point in the history
  • Loading branch information
endast committed Jan 17, 2024
1 parent fc14c51 commit 634e641
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 28 deletions.
22 changes: 7 additions & 15 deletions docs/preprocessing.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,18 @@ An example file is included in this repo: [example config](https://github.com/PM
# What chromosomes should be processed
included_chromosomes : [21,22]

# The format of the name of the "raw" vcf files
vcf_files_list: vcf_files_list.txt

# Number of threads to use in the preprocessing script, separate from snakemake threads
preprocess_threads: 16

# If you need to run a cmd to load bcf and samtools specify it here, see example
bcftools_load_cmd : # module load bcftools/1.10.2 &&
samtools_load_cmd : # module load samtools/1.9 &&

# Path to where you want to write results and intermediate data
working_dir: workdir
# Path to ukbb data
data_dir: data

# These paths are all relative to the data dir
metadata_dir_name: metadata

# These paths are all relative to the working dir
# Here will the finished preprocessed files end up
Expand All @@ -75,23 +76,14 @@ sparse_dir_name : sparse
# Expected to be found in working_dir/reference_dir
reference_fasta_file : GRCh38.primary_assembly.genome.fa

# The format of the name of the "raw" vcf files
vcf_files_list: vcf_files_list.txt

# Number of threads to use in the preprocessing script, separate from snakemake threads
preprocess_threads: 16

# You can specify a different zcat cmd for example gzcat here, default zcat
zcat_cmd: gzcat
zcat_cmd:
```
The config above would use the following directory structure:
```shell
parent_directory
|-- data
| |-- metadata
| `-- vcf
`-- workdir
|-- norm
| |-- bcf
Expand Down
17 changes: 6 additions & 11 deletions pipelines/config/deeprvat_preprocess_config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# What chromosomes should be processed
included_chromosomes : [21,22]

# The format of the name of the "raw" vcf files
vcf_files_list: vcf_files_list.txt

# Number of threads to use in the preprocessing script, separate from snakemake threads
preprocess_threads: 16

# If you need to run a cmd to load bcf and samtools specify it here, see example
bcftools_load_cmd : # module load bcftools/1.10.2 &&
samtools_load_cmd : # module load samtools/1.9 &&

# Path to where you want to write results and intermediate data
working_dir: workdir
# Path to ukbb data
data_dir: data

# These paths are all relative to the data dir
metadata_dir_name: metadata

# These paths are all relative to the working dir
# Here will the finished preprocessed files end up
Expand All @@ -26,11 +27,5 @@ sparse_dir_name : sparse
# Expected to be found in working_dir/reference_dir
reference_fasta_file : GRCh38.primary_assembly.genome.fa

# The format of the name of the "raw" vcf files
vcf_files_list: vcf_files_list.txt

# Number of threads to use in the preprocessing script, separate from snakemake threads
preprocess_threads: 16

# You can specify a different zcat cmd for example gzcat here, default zcat
zcat_cmd:
2 changes: 0 additions & 2 deletions pipelines/preprocessing/preprocess.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ zcat_cmd = config.get("zcat_cmd") or "zcat"
preprocessing_cmd = "deeprvat_preprocess"

working_dir = Path(config["working_dir"])
data_dir = Path(config["data_dir"])
preprocessed_dir = working_dir / config["preprocessed_dir_name"]
metadata_dir = data_dir / config["metadata_dir_name"]
reference_dir = working_dir / config["reference_dir_name"]

preprocess_threads = config["preprocess_threads"]
Expand Down

0 comments on commit 634e641

Please sign in to comment.