Skip to content

Handles the preprocessing from illumina fastq files through TREAT using SnakeMake

License

Notifications You must be signed in to change notification settings

jebard/fastq-to-treat

Repository files navigation

# fastq-to-treat

Handles the preprocessing from illumina fastq files through TREAT using SnakeMake
  1. Navigate to the new flowcell data output.

  2. git clone this repository

    git clone https://github.com/jebard/fastq-to-treat.git

  3. Activate the python anaconda environment (testing on CCR 11-21-19)

    source fastq-to-treat/bin/activate

  4. Edit the config.json file and cluster.json files

  5. Ensure meta-data table contains all of the necessairy fields (TABBED-DELIMITED:

    Sample gene offset tetracycline knock_down replicate Adapter_1 Adapter_2 path_to_treat_template ForwardFastqGZ ReverseFastqGZ

Example :

`A6_3B_alenaSM_2 A63B    25      FALSE   alenaSM 2  GAAAACACCCATTTTTAGGAGG  GGAGTTATAGAATAAGATCAAATAAG  projects/academic/lread/gene-templates/A63B.fasta A6_3B_alenaSM_2_S20_R1_001.fastq.gz  A6_3B_alenaSM_2_S20_R2_001.fastq.gz`

** NOTE EXACT HEADERS HAVE TO BE ENFORCED or key errors will be thrown during processing**

  1. Launch jobs

The pipeline will utilize CCR resource to parallel execution. OTU table and statisics about merge rate, filter rate, hit rate wiil be placed under table

The use of --latency-wait allows for SLURM to catch up writing the files and posting the file handles so Snakemake can see them.

`snakemake --latency-wait 120 -p -j 100 --cluster-config cluster.json --cluster "sbatch --qos nih"`
  1. Pipeline should result in a treat.db file -- proceed with treat normalization process.

  2. Copy over the resulting treat.db file onto your local machine, or a machine that can launch a treat web browser.

  3. Run treat.exe --db server (or equivalent command found https://github.com/ubccr/treat)

To launch treat with updated DB Copy the new .database file into /lread/dbs

  1. Check treats status

systemctl status treat

  1. Stop the treat service

sudo systemctl stop treat

  1. Should show treat as stopped

sudo systemctl status treat

  1. Restart the treat service

sudo systemctl start treat

  • NOTE: this will start treat up and will take some time to load.
  1. To monitor the service

sudo journalctl -f -u treat

About

Handles the preprocessing from illumina fastq files through TREAT using SnakeMake

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published