Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: [Git it write] Plugin is removing characters from .MD file
    biomodal
    Participant

    This worked. Thank you very much!

    in reply to: [Git it write] Plugin is removing characters from .MD file
    biomodal
    Participant

    Sure, this is the code block from GitHub:

    `
    library(data.table)
    library(tidyverse)
    library(methylKit)

    # 5mC
    fread(“~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport.txt.gz”,
    col.names =c(‘contig’, ‘coordinate’, ‘strand’, ‘mC’, ‘hmC’, ‘C’, ‘context’, ‘trinucleotide’, ‘coverage’) )%>%
    ## Chromosome Position Strand Count methylated. Count unmethylated. C-context Trinucleotide context
    select(contig, coordinate, strand, mC, C, context, trinucleotide)%>%
    fwrite(“~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport_reformatted_mC.txt.gz”,quote = FALSE,col.names = FALSE,row.names = FALSE,sep=”\t”)

    #. 5hmC
    fread(“~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport.txt.gz”,
    col.names =c(‘contig’, ‘coordinate’, ‘strand’, ‘mC’, ‘hmC’, ‘C’, ‘context’, ‘trinucleotide’, ‘coverage’) )%>%
    ## Chromosome Position Strand Count methylated. Count unmethylated. C-context Trinucleotide context
    select(contig, coordinate, strand, hmC, C, context, trinucleotide)%>%
    fwrite(“~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport_reformatted_hmC.txt.gz”,quote = FALSE,col.names = FALSE,row.names = FALSE,sep=”\t”)

    ##Read the reformatted files in methylkit
    myobj<-methRead(list(‘~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport_reformatted_mC.txt.gz’,
    ‘~/CEG1485-EL01-D1115-005.genome.GRCh38Decoy_primary_assembly.dedup.duet-evoC.CG_quant.CXreport_reformatted_hmC.txt.gz’),
    sample.id=list(“mC”,”hmC”),
    assembly=”hg38″,
    treatment=c(0,0),
    context=”CpG”,
    mincov = 10,
    pipeline=’bismarkCytosineReport’
    )
    #Make the plots
    getMethylationStats(myobj[[1]],plot=TRUE,both.strands=FALSE)
    getMethylationStats(myobj[[2]],plot=TRUE,both.strands=FALSE)
    `

    And when I drop that code into the parsedown link you sent, the backslashes appear to be there:
    Code screenshot

Viewing 2 posts - 1 through 2 (of 2 total)

Subscribe to our Newsletter

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter

By using this website, you agree to our Terms