> ## Content Index
> Fetch the complete content index at: https://bioinformatics.ghost.io/llms.txt
> Use this file to discover other available public pages before exploring further.

# NGS Data analysis tips
- URL: https://bioinformatics.ghost.io/ngs-data-analysis-tips/
- Published: 2017-12-23T01:05:27.000Z
- Updated: 2017-12-23T01:05:27.000Z
- Author: Aarthi Ramakrishnan
- Tags: programming, #Import 2026-08-27 15:34

Following are some suggestions while analyzing NGS datasets -

1. 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
1. 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!
2. Fold change and log fold change are 2 different terms. Do not mistake one for the other.
3. 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.
4. Automate your process wherever possible! Accomplishing tasks manually is not only error prone, but also a waste of time.
5. 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.
6. Be very careful with the bedtools flags. Understand each flag carefully.