Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dot plot and html file #1

Open
xucaoling opened this issue Aug 25, 2022 · 7 comments
Open

dot plot and html file #1

xucaoling opened this issue Aug 25, 2022 · 7 comments

Comments

@xucaoling
Copy link

xucaoling commented Aug 25, 2022

Dear liumz,
Thank you very much for your scripts, when i use define_statistics_add_filter.py, it shows:

#Plot dot plot
cmd = "/home/mengzhu/Scripts/R/TranslocPlot.R results/{}_Editing_events.tab results/{}_Editing_events_dot_plot.pdf \
       binsize=2000000 assembly={} plotshape=octogon strand=0".format(basename,basename,genome)
print(cmd)
os.system(cmd)

#generate html file
cmd = "/home/mengzhu/github/PEM-Q/tools/R/TranslocHTMLReads_PEMQ.pl results/{}_Editing_events.tab results/{}_Editing_events.html \
       --primer {} -adapter {}".format(basename,basename,primer,adapter)
print(cmd)
os.system(cmd)

But i do not find TranslocPlot.R and TranslocHTMLReads_PEMQ.pl and DSB_filter_update.py, Could you share it?
@liumz93
Copy link
Owner

liumz93 commented Aug 27, 2022

Hi xucaoling, I'll get these disappearing files fixed soon, please try git clone and run again then.

@liumz93
Copy link
Owner

liumz93 commented Aug 27, 2022

fixed already.

@kclem
Copy link

kclem commented Sep 27, 2022

Thanks @liumz93

The script 'TranslocPlot.R' calls

  source_local("Rsub.R")
  source_local("TranslocHelper.R")

Do you have those files as well?

@liumz93
Copy link
Owner

liumz93 commented Sep 28, 2022

Sorry for the problems, I have provided explanatory notes in README.md, Thanks!

@YanpingHu
Copy link

Dear liumz,
Thank you very much for your scripts, when i use define_statistics_add_filter.py, it shows:

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
close_inver.drop(columns=['Microhomolog_len'], inplace=True)
Error in file(file, "rt") :
Calls: getCytoBands -> read.delim -> read.table -> file
Warning message:
In file(file, "rt") :
can't open '/D1/DB/Genome/Human/bwa_indexes/GRCh38/annotation/cytoBand.txt': There is no file or directory for that
Stop execution
Can't locate PerlSub.pl in @inc (@inc contains: /D1/Bio/CRISPR/PemSeq/lib /root/perl5/lib/perl5/x86_64-linux-thread-multi /root/perl5/lib/perl5 /D1/APP/Script/Anaconda/lib/site_perl/5.34.0/x86_64-linux-thread-multi /D1/APP/Script/Anaconda/lib/site_perl/5.34.0 /D1/APP/Script/Anaconda/lib/5.34.0/x86_64-linux-thread-multi /D1/APP/Script/Anaconda/lib/5.34.0 .) at /D1/Bio/CRISPR/PemSeq/tools/TranslocHTMLReads_PEMQ.pl line 21.

But i do not find cytoBand.txt, refGene.bed and PerlSub.pl, Could you share it?

@liumz93
Copy link
Owner

liumz93 commented Mar 26, 2024

Hi YanpinHu,

Now you can find the PerlSub.pl in the tool folder. As for cytoBand.txt, refGene.bed, you can download them from UCSC genome browser. For hg38: https://hgdownload.cse.ucsc.edu/goldenpath/hg38/database/

Thanks,

@YanpingHu
Copy link

Thanks! The code is running properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants