Difference between revisions of "HLab:Steps"
(→Bcl – qseq - fastq) |
|||
Line 26: | Line 26: | ||
# cd new/runName/fastq/ | # cd new/runName/fastq/ | ||
# ~giardine/illumina/demultiplex.pl RUN_NAME sampleSheet.csv | # ~giardine/illumina/demultiplex.pl RUN_NAME sampleSheet.csv | ||
+ | |||
+ | ==FTP files to Galaxy== | ||
+ | Shell script to ftp files all at once. This will take a while, be sure to run screen. Go to Get Data and load the files into your history in less than 3 days from the ftp or they may be deleted. Put your password and email in place of the one in the example. | ||
+ | |||
+ | pagscr | ||
+ | kinit; aklog | ||
+ | export GALAXYPASS=yourpassword | ||
+ | |||
+ | ftp -ivn main.g2.bx.psu.edu <<END | ||
+ | user giardine@bx.psu.edu $GALAXYPASS | ||
+ | mput *Read*.fq | ||
+ | bye | ||
+ | END | ||
+ | |||
+ | ==Groom reads and add to library== | ||
+ | # Use the galaxy tool (FASTQ groomer) to groom the fastq reads. (score format Sanger, input & output) | ||
+ | # Rename the files to their previous name changing .fq to .groomed so you know which ones are groomed. Put the file name in the notes box also (.fq). | ||
+ | # Import into the correct library and folder. Edit the information. Put the old filename in the Message box. Change the file name to match the pattern | ||
+ | #: ddMonYYYY_ln9999_#index_Read#_description_here_groomed_reads | ||
+ | # Put groomed read counts in Google docs (if have write access) | ||
+ | |||
+ | |||
+ | ==Trouble shooting== | ||
+ | # Things to make sure before you begin | ||
+ | #:*echo $PATH | ||
+ | #::you should get /sge/ in your path | ||
+ | #:*You need access to Persephone users group. The default is you do not have access. | ||
+ | # In case of trouble, look at error logs in job_output/RUN_NAME | ||
+ | # If you get this error in the email: "failed to set AFS token" | ||
+ | #: Usually, just logging out and logging in again solves the problem. Relogin and use qdel –u username to delete all your old jobs. Then resubmit the jobs as before. | ||
+ | # If you get a permissions error, most likely you do not have access to the cluster used for the jobs. Email admin. |
Revision as of 12:38, 3 December 2012
Contents
Bcl – qseq - fastq
- Get run folder name from Cheryl. (RUN_NAME)
- Create RUN_NAME directory under /afs/bx.psu.edu/depot/data/hardison_lab/illumina/bcl_to_fastq/job_output (example: mkdir 120111_SN407_0185_BD0F1EABXX )
- Make a config file (CONFIG_FILE) in /afs/bx.psu.edu/depot/data/hardison_lab/illumina/bcl_to_fastq/
- Copy the previous run’s config file and change the info in it to reflect the updated information. Basically, wherever you spot the run name of some old run in this file, change it to the current RUN_NAME. Give your own email address.
- In the same directory, i.e. /afs/bx.psu.edu/depot/data/hardison_lab/illumina/bcl_to_fastq/ run the following command:
- submit-jobs CONFIG_FILE
This submits jobs to the cluster (persephone). Use qstat to check on progress. It will email at the start and end of each job. The error and output files are written to the directory you created under job_output. If a job errors out use qdel JOBID to delete it. (or qdel –u username to delete all jobs) The output qseq and fastq files will be in the location specified in the CONFIG_FILE. During the conversion to fastq the reads are filtered based on the pass filter field of the qseq file.
Run 32 finished in about 2 hours using less than 4G of RAM.
Demultiplexing
- Even if none of the lanes are multiplexed these steps and program will rename the fastq files (by creating symlinks). If it is a mix it will do each lane as appropriate. The index column in the SampleSheet should be empty for these lanes.
- To demultiplex some specific lanes or all lanes, create a SampleSheet.csv in the /fastq directory of that run (FASTQ_DIRECTORY in config file). It has to have as many lines as the final number of demultiplexed files desired, with one line specifying info for each file. This is a CSV version of excel file Cheryl sends. (As specified in CASAVA 1.7 users guide - /usr/local/CASAVA-1.7.0/share/CASAVA-1.7.0/docs/cassava/CASAVA1.7_User_Guide_15011196_A.pdf).
- Make sure the file has unix line endings. If it was created using Excel on a Mac, it will have MacOSX line endings. Run Cathy’s line-ends program to change the line endings.
- ~cathy/bin/line-ends
- Usage: /afs/bx.psu.edu/home/cathy/bin/line-ends <target> <filename> > output
- where target = win, mac, or unix
- Example: /afs/bx.psu.edu/home/cathy/bin/line-ends unix run26_SampleSheet.csv > run26_SampleSheet_endunix.csv
- ~cathy/bin/line-ends
- The “unknown” files contains fastq reads that were not assigned to any specific index because the index sequence had mismatches.
- The file RUN_NAME/fastq/info.txt has the original fastq file names, and some stats for that lane; including read length, total reads, count of good reads, and the percent of good reads.
- To begin demultiplexing, run screen on mal or desired machine.
- cd new/runName/fastq/
- ~giardine/illumina/demultiplex.pl RUN_NAME sampleSheet.csv
FTP files to Galaxy
Shell script to ftp files all at once. This will take a while, be sure to run screen. Go to Get Data and load the files into your history in less than 3 days from the ftp or they may be deleted. Put your password and email in place of the one in the example.
pagscr kinit; aklog export GALAXYPASS=yourpassword
ftp -ivn main.g2.bx.psu.edu <<END user giardine@bx.psu.edu $GALAXYPASS mput *Read*.fq bye END
Groom reads and add to library
- Use the galaxy tool (FASTQ groomer) to groom the fastq reads. (score format Sanger, input & output)
- Rename the files to their previous name changing .fq to .groomed so you know which ones are groomed. Put the file name in the notes box also (.fq).
- Import into the correct library and folder. Edit the information. Put the old filename in the Message box. Change the file name to match the pattern
- ddMonYYYY_ln9999_#index_Read#_description_here_groomed_reads
- Put groomed read counts in Google docs (if have write access)
Trouble shooting
- Things to make sure before you begin
- echo $PATH
- you should get /sge/ in your path
- You need access to Persephone users group. The default is you do not have access.
- In case of trouble, look at error logs in job_output/RUN_NAME
- If you get this error in the email: "failed to set AFS token"
- Usually, just logging out and logging in again solves the problem. Relogin and use qdel –u username to delete all your old jobs. Then resubmit the jobs as before.
- If you get a permissions error, most likely you do not have access to the cluster used for the jobs. Email admin.