NGS Data analysis tips
Following are some suggestions while analyzing NGS datasets -
- Whenever you cannot get a bioinformatics tool working, try the following -
- Read the manual/command line options and check if you have missed something
- Check for spelling mistakes when you manually edit files. AVOID MANUALLY EDITING FILES as much as possible in the first place!
- Check the file format of your input files. For example, format your BED files to have 6 fields instead of 3
- Check if 'chr1' is present in one input file and '1' is present in the other
- Email the authors/google the query
- Look at the tool's source code
- To check whether a bam file is sorted, if you are able to index the file using
samtools index file_name, then the file is sorted. The headers of the sam file are unreliable. The older versions of samtools report SO:unsorted even though the file could be actually sorted! - Fold change and log fold change are 2 different terms. Do not mistake one for the other.
- Whenever you would like to visualize expression data as a heatmap, it is best to log transform the data before visualization. Vst or rlog transform can be used.
- Automate your process wherever possible! Accomplishing tasks manually is not only error prone, but also a waste of time.
- DO NOT copy a piece of code from the terminal window, paste it somewhere else and try to run it. The format of the copied code would have changed.
- Be very careful with the bedtools flags. Understand each flag carefully.