Hello, RamRs
Thank you so much for your great help!
I have all the file in my folder.
Thank you again!
Best,
Yue Li
administrator@ACB-HuangLab-Ubuntu:~/bedtools2-2.26.0/bin$ ./bedClip
bedClip - Remove lines from bed file that refer to off-chromosome locations.
usage:
bedClip [options] input.bed chrom.sizes output.bed
chrom.sizes is a two-column file/URL: <chromosome name=""> <size in="" bases="">
If the assembly <db> is hosted by UCSC, chrom.sizes can be a URL like
http://hgdownload.soe.ucsc.edu/goldenPath/<db>/bigZips/<db>.chrom.sizes
or you may use the script fetchChromSizes to download the chrom.sizes file.
If not hosted by UCSC, a chrom.sizes file can be generated by running
twoBitInfo on the assembly .2bit file.
options:
-truncate - truncate items that span ends of chrom instead of the
default of dropping the items
-verbose=2 - set to get list of lines clipped and why
administrator@ACB-HuangLab-Ubuntu:~/bedtools2-2.26.0/bin$ sh bdg2bw.sh
Need 2 parameters! <bedgraph> <chrom info="">
/usr/bin/bedtools
administrator@ACB-HuangLab-Ubuntu:~/bedtools2-2.26.0/bin$ sh bdg2bw.sh flag1_FE.bdg hg38.len
bdg2bw.sh: 19: bdg2bw.sh: bedClip: not found
/usr/bin/bedtools
bdg2bw.sh: 21: bdg2bw.sh: cannot create flag1_FE.bdg.sort.clip: Permission denied
bdg2bw.sh: 23: bdg2bw.sh: Bad substitution