Hello everyone. I have never run a methylseq analy...
# methylseq
m
Hello everyone. I have never run a methylseq analysis, and I am looking for some input from the experts. I am basically been asked to perform a methylseq analysis on samples prepared with the NEBNext Enzymatic Methyl-seq Kit, and then captured with the Twist Human methylome panel. This was finally sequenced in NovaSeq X Plus. I was reading the parameter list, and together with chatGPT, I came up with the following list of parameters:
Copy code
# Reference
genome: 'GRCh38'                

# Core workflow
aligner: 'bismark'   
em_seq: true 

# Adapter / hard clipping (helps EM-seq starts; adjust later with M-bias if needed)
clip_r1: 10
clip_r2: 10

# Bismark methylation extractor edge masks (mitigate 3' end bias)
ignore_3prime_r1: 2
ignore_3prime_r2: 2

# Full reports & QC
cytosine_report: true            
run_preseq: true                  
run_qualimap: true                
bamqc_regions_file: '/reference/Twist_Human_Methylome_hg38.bed' 

# Targeted capture analysis
run_targeted_sequencing: true
target_regions_file: '/reference/Twist_Human_Methylome_hg38.bed'
collecthsmetrics: true
I am particularly doubtful about the clipping (and edge masks). Can any expert please help a novice in his first adventure in methyl seq analysis? 🙂 Cheers
I was actually reading the parameters more carefully, and
--em_seq
already applies a defined set of clipping settings:
Equivalent to
--clip_r1 10
--clip_r2 10
--three_prime_clip_r1 10
--three_prime_clip_r2 10
.
Also sets the
--maxins
flag to
1000
for Bismark.
f
that is correct. I think in addition to that, the pipeline also sets
--ignore_r2 2
, which in case of EM-seq is not really needed as the reads are getting clipped from all sides anyway. Assuming your reads have a decent length, ignoring 2 bases from R2 are probably not a big issue though. (I encountered this same problem myself only last week)
🙏 1
other than that, I’d give it a go!
d
Dropping a quick note as this might not be immediately clear from the documentation. When using
run_targeted_sequencing
, the methylation results shown in the MultiQC report still refer to the whole genome. If you’d like the methylation percentages to reflect only the target regions, you’ll need to calculate them manually using the
*.targeted.bedGraph
files. Hope it helps!
🙏 1
s
> calculate them manually using the
*.targeted.bedGraph
@Daniel Carrillo Bautista this should be doable in the pipeline and added as a separate multiqc output. lets raise an issue on gh and work on it
m
Dear @Daniel Carrillo Bautista Thank you for the heads up. I have run the pipeline with the following parameters:
Copy code
# I/O
input: '/03_analysis/samples/samplesheet_run1_operatorA.csv'
outdir: '/04_result/methylseq_run1_operatorA'

# Reference
genome: 'GRCh38'

# Core
aligner: 'bismark'
em_seq: true

# Targeted capture (Twist Human Methylome)
run_targeted_sequencing: true
target_regions_file: '/03_analysis/target_capture_bed/covered_targets_Twist_Methylome_hg38_annotated_collapsed.bed'
collecthsmetrics: true

# Full reports & QC
cytosine_report: true             # stranded per-cytosine tables
run_preseq: true                  # library complexity
run_qualimap: true                # alignment QC
bamqc_regions_file: '/03_analysis/target_capture_bed/covered_targets_Twist_Methylome_hg38_annotated_collapsed.bed'   # focus Qualimap on targets
multiqc_title: 'EM-seq GRCh38 – Twist capture (Run1 Operator A)'
Indeed, when I am trying to collect the metrics, I took info from the multiqc data folder, namely the
multiqc_bismark_alignment.txt
and
multiqc_general_stats.txt
. These give me for the first:
Copy code
Sample	aligned_reads	ambig_reads	discarded_reads	meth_chg	meth_chh	meth_cpg	no_alignments	percent_aligned	percent_chg_meth	percent_chh_meth	percent_cpg_meth	strand_ctob	strand_ctot	strand_directional	strand_ob	strand_ot	total_c	total_reads	unmeth_chg	unmeth_chh	unmeth_cpg	version
And for the second file:
Copy code
Sample	bismark-percent_cpg_meth	bismark-percent_chg_meth	bismark-percent_chh_meth	bismark-total_c	bismark-dup_reads_percent	bismark-dedup_reads	bismark-aligned_reads	bismark-percent_aligned	qualimap_bamqc-avg_gc	qualimap_bamqc-median_insert_size	qualimap_bamqc-1_x_pc	qualimap_bamqc-5_x_pc	qualimap_bamqc-10_x_pc	qualimap_bamqc-30_x_pc	qualimap_bamqc-50_x_pc	qualimap_bamqc-median_coverage	qualimap_bamqc-mean_coverage	qualimap_bamqc-percentage_aligned_on_target	qualimap_bamqc-regions_size	qualimap_bamqc-regions_mapped_reads	qualimap_bamqc-general_error_rate	qualimap_bamqc-percentage_aligned	qualimap_bamqc-mapped_reads	qualimap_bamqc-mapped_paired_reads	qualimap_bamqc-total_reads	qualimap_bamqc-ns	qualimap_bamqc-duplication_rate	picard_hsmetrics-FOLD_ENRICHMENT	picard_hsmetrics-MEDIAN_TARGET_COVERAGE	picard_hsmetrics-picard_target_bases_30X	cutadapt-percent_trimmed	fastqc-percent_duplicates	fastqc-percent_gc	fastqc-avg_sequence_length	fastqc-median_sequence_length	fastqc-percent_fails	fastqc-total_sequences
For one batch of samples, after taking a bit of info from both tables, I reach this:
Copy code
Sample ID Total Input Reads (M) Mapped Reads (M) Mapped (%) Target size (Mb) Median Coverage % >1x % >10x % >30x % >50x
                  <char>                 <num>            <num>      <num>            <num>           <num> <num>  <num>  <num>  <num>
 1:           F2501457A1                428.99           389.74       90.9           123.14             235  99.5   99.3   99.1   98.7
 2:           F2501457A2                435.14           396.39       91.1           123.14             246  99.5   99.3   99.1   98.8
 3:           F2501467A1                507.34           463.22       91.3           123.14             299  99.5   99.3   99.2   98.9
 4:           F2501467A2                494.66           452.09       91.4           123.14             288  99.5   99.3   99.1   98.9
 5:           F2501470A1                628.78           575.08       91.5           123.14             435  99.6   99.4   99.3   99.2
 6:           F2501470A2                601.61           551.31       91.6           123.14             436  99.6   99.4   99.3   99.2
 7:    HumanMethylatedA1                596.90           549.32       92.0           123.14             402  99.5   99.3   99.0   98.5
 8:    HumanMethylatedA2                609.68           560.23       91.9           123.14             389  99.5   99.3   99.0   98.5
 9: HumanNonMethylatedA1                368.12           340.92       92.6           123.14             207  99.4   98.9   96.4   92.5
10: HumanNonMethylatedA2                479.88           444.68       92.7           123.14             242  99.4   99.0   97.1   94.1
I was under the impression that the coverage that was being provided was for the targeted regions on the panel. I can't imagine reaching coverages around 200X for the whole genome, when the captured target is ~120MB (Twist human methylome). Are you sure that those coverages are for the whole genome? Can you give me some pointers on how to test this and get the coverage for the target regions? Cheers! :)
Another question for the experts!!! 🙂 I am taking the bed file from the target capture panel, the
.cov
files from bismark, and selecting the rows that are on the target. The Twist methylome panel is supposed to target 3.98M CpG sites through 123 Mb. When I select and count the cytosines (lines) on the
.cov
file, I have more than double of the above number. I am imagining that for CpGs, two subsequent positions will be reported. Am I right? Nevertheless, even if this is the case, the number of reads covering the subsequent reads are often very different. As is the methylation profile. Is this expected? Also, on the
.cov
file, do we have all Cs, independent of context? Sorry for my naive questions. My first time dealing with methylation data as a bioinformatician! 😐