Skip to content
Snippets Groups Projects
Commit e1928a57 authored by julie.orjuela_ird.fr's avatar julie.orjuela_ird.fr
Browse files

comment sample_info into the snakefile and minor modifs on readme

parent f3e3c332
No related branches found
No related tags found
No related merge requests found
......@@ -47,40 +47,6 @@ Install RNAja in cluster mode using **singularity** container from rnaja_utiliti
Please run command line 'RNAja edit_cluster_config' before the first run of RNAja see https://forge.ird.fr/phim/rnaja-pipeline/README.md and configure by default threads and memory resources.
## 2. Running a datatest
Running test with a datatest from RNAja_utilities in a repertory TEST
```bash
RNAja test_install --help
RNAja test_install -d TEST
```
### 2.1 Running your data in LOCAL mode
launching suggested command line done by RNAja, in LOCAL mode:
```bash
RNAja run_local --help
RNAja run_local -t 8 -c TEST/data_test_config.yaml --singularity-args "--bind $HOME"
```
In local mode, it's possible to allocate threads to some rules using `--set-threads` snakemake argument such as
```
RNAja run_local -t 8 -c TEST/data_test_config.yaml --set-threads hisat2_index=4 hisat2_map_paired=2
```
### 2.2 Running your data in CLUSTER mode
Now you can launch suggested command line done by RNAja in `cluster` mode BUT before you need to configurate cluster parameters running command line `RNAja edit_cluster_config` before the first run and modify threads, ram, node and computer resources.
RNAja does a copy of `cluster_config.yaml` file into your home `"/home/$USER/.config/rnaja_pipeline/cluster_config.yaml"`
```bash
RNAja run_cluster --help
RNAja edit_cluster_config
```
Feel free to modify resources (RAM, CPU number and partition) using the rules names found above.
```
......@@ -124,8 +90,41 @@ rule stringtie_discovery
```
## 2. Running a datatest
Running a test to be sure of RNAja installation. RNAja `test_install` download an available dataset from a distant server (RNAja_utilities i-Trop). Pipeline tests are launched in a repertory (option -d DIR_NAME) created by RNAja.
```bash
RNAja test_install --help
RNAja test_install -d TEST
```
### 2.1 Running your data in LOCAL mode
launching suggested command line done by RNAja, in LOCAL mode:
```bash
RNAja run_local --help
RNAja run_local -t 8 -c TEST/data_test_config.yaml --singularity-args "--bind $HOME"
```
In local mode, it's possible to allocate threads to some rules using `--set-threads` snakemake argument such as
```
RNAja run_local -t 8 -c TEST/data_test_config.yaml --set-threads hisat2_index=4 hisat2_map_paired=2
```
### 2.2 Running your data in CLUSTER mode
Now you can launch suggested command line done by RNAja in `cluster` mode BUT before you need to configurate cluster parameters running command line `RNAja edit_cluster_config` before the first run and modify threads, ram, node and computer resources.
RNAja does a copy of `cluster_config.yaml` file into your home `"/home/$USER/.config/rnaja_pipeline/cluster_config.yaml"`
```bash
RNAja run_cluster --help
RNAja edit_cluster_config
```
If singularity was selected in installation of RNAja, it could be needed to give argument `--singularity-args \"--bind $HOME\"` to Snakemake, by using :
If singularity was selected in installation of RNAja, it could be needed to give argument `--singularity-args \"--bind $HOME\"` to RNAja, by using :
```bash
RNAja run_cluster --help
......
......@@ -18,7 +18,7 @@ cluster_config = RNAja_obj.cluster_config
# print(RNAja_obj.export_use_yaml)
# print for debug:
#
pp(RNAja_obj)
#pp(RNAja_obj)
# print(tools_config)
#exit()
......@@ -29,7 +29,7 @@ log_dir = Path(config["DATA"]["output_dir"]+"/LOGS/").resolve()
annotation_path = Path(config["DATA"]["annotation"]).resolve()
reference_path = Path(config["DATA"]["reference"]).resolve()
reference_basename = Path(config["DATA"]["reference"]).stem
samplefile = Path(config["DATA"]["sample_info"]).resolve()
#samplefile = Path(config["DATA"]["sample_info"]).resolve()
fastq_dir = Path(config["DATA"]["fastq_dir"]).resolve()
# Change workdir to output path (slurm logs append on outdir)
......@@ -573,7 +573,7 @@ rule diff_exp_analysis:
threads: get_threads('diff_exp_analysis',4)
input:
gcsv=rules.prepDE_stringtie_table.output.gcsv,
sample_info=config["DATA"]["sample_info"],
#sample_info=config["DATA"]["sample_info"],
#de_comparisons_file=config["DATA"]["files"]["de_comparisons_file"],
gtf_file=config["DATA"]["annotation"],
params:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment