Git Product home page Git Product logo

Comments (9)

yupenghe avatar yupenghe commented on May 31, 2024

Hi, it is possible to run methylpy with the 3 columns missing but they need to be filled with appropriate values. I would suggest "+" for strand, "CGN" for sequence context and "1" for methylated. Please let me know if it works.

Yupeng

from methylpy.

WWJiaxuan avatar WWJiaxuan commented on May 31, 2024

Hi, Yupeng, thanks very much for your quick reply and your suggestion.

Yes, it works! I am just wondering if it is reasonable to have more than 95% ( 225901/27751) "NA" in the output?

I also got another little question. I compress all the cell allc files into only ONE .tgz files, is it possible for "add-methylation-level" to take .tgz (compressed file) and recognize it as several allc input files? Since I have tried one .tgz file, it seemed that the program never ends.

Thanks again!

from methylpy.

yupenghe avatar yupenghe commented on May 31, 2024

You may want to check whether the tsv file is sorted by coordinates. Otherwise, the values you got are probably not correct.

Thanks for the suggestion but taking a tar ball as input is not supported by methylpy yet.

Yupeng

from methylpy.

WWJiaxuan avatar WWJiaxuan commented on May 31, 2024

Hi, Yupeng, thank you for your reply.

May I know further what "tsv file is sorted by corordinates" means? Does it mean for every chromosome, I need to sort the positions from least number to largest number?

Thanks in advance!

from methylpy.

yupenghe avatar yupenghe commented on May 31, 2024

Exactly. You can use the below command to do that.

tail -n +2 TSV_FILE|sort -k 1,1 -k 2,2g -k 3,3g |cat header - > TSV_FILE_REFORMATTED
rm header

from methylpy.

WWJiaxuan avatar WWJiaxuan commented on May 31, 2024

Hi, Yupeng, thank you for the further suggestion, and it really helps! After sorting the coordinates, the results become more reasonable.

Thanks again for your time and valuable advice!

from methylpy.

WWJiaxuan avatar WWJiaxuan commented on May 31, 2024

Hi, Yupeng. Sorry to bother you again.

Now I am running "add-methylation_level" for 52 samples, and I got an error message as below.

rm: cannot remove ‘March15_HSC_methy_gene_level_cmp_0_D2_1_R2_allc_reformed_temp_methylation_levels.tsv’: No such file or directory
Traceback (most recent call last):
File "/home/wangwujiaxuan/.local/bin/methylpy", line 5, in
parse_args()
File "/home/wangwujiaxuan/.local/lib/python2.7/site-packages/methylpy/parser.py", line 270, in parse_args
input_no_header=args.input_no_header)
File "/home/wangwujiaxuan/.local/lib/python2.7/site-packages/methylpy/DMRfind.py", line 888, in get_methylation_levels_DMRfind
subprocess.check_call(shlex.split("rm "+output.replace(".tsv","")+"_"+sample+"_temp_methylation_levels.tsv"))
File "/usr/lib64/python2.7/subprocess.py", line 542, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['rm', 'March15_HSC_methy_gene_level_cmp_0_D2_1_R2_allc_reformed_temp_methylation_levels.tsv']' returned non-zero exit status 1

FYI, 'March15_HSC_methy_gene_level_cmp.tsv' is my output file name, and 'CMP_50_D2_1_R2_allc_reformed.tsv' is my input allc filename.

Since I have 'CMP_50_D2_1_R2_allc_reformed.tsv' and 'CMP_10_D2_1_R2_allc_reformed.tsc', according to the output name, these two will share the same name "March15_HSC_methy_gene_level_cmp_0_D2_1_R2_allc_reformed_temp_methylation_levels.tsv". Is this the reason which causes the error? If it is, is it possible to output full allc filename to avoid this kind of confusion? If it is not, may I know is there any way to deal with it?

Thank in advance! Looking forward to your reply!

from methylpy.

yupenghe avatar yupenghe commented on May 31, 2024

Hi, the naming of allc files look like the cause. I would recommend changing the names of the allc files such that they have different basename (e.g. "CMP_50_D2_1_R2_allc_reformed_1" and "CMP_50_D2_1_R2_allc_reformed_2") and the same suffix ".tsv".

Yupeng

from methylpy.

WWJiaxuan avatar WWJiaxuan commented on May 31, 2024

Hi, Yupeng.

Sure, I have already changed the name. Thanks again for your continuous help!

from methylpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.