-
I want to take the interaction matrix of a chromosome or a segment of a chromosome from cool and save it to another cool. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
Please try using The help for the command should be enough to understand how it works, but feel free to ask if it's unclear. |
Beta Was this translation helpful? Give feedback.
-
UPDATE: as @Phlya posted earlier, the For a single intrachromosomal subset $ cooler dump --join -r {chrom}:{start}-{end} {input_cool} | cooler load --format bg2 {chrom.sizes}:{binsize} - {output_cool} Include |
Beta Was this translation helpful? Give feedback.
-
Is there a way to do this while retaining any pre-calculated weights associated with the bins that make up the subset? |
Beta Was this translation helpful? Give feedback.
-
what is the usage for cooltools rearrange? I'm trying to get rid of extraneous chromosomes and just keep 1:22,X,Y. I have a bed file with but I am getting an error when I use the following command with this bedfile |
Beta Was this translation helpful? Give feedback.
UPDATE: as @Phlya posted earlier, the
cooltools rearrange
command is now released and can be used to do this as well.For a single intrachromosomal subset
{chrom}
or{chrom}:{start}-{end}
, you can also accomplish this using:$ cooler dump --join -r {chrom}:{start}-{end} {input_cool} | cooler load --format bg2 {chrom.sizes}:{binsize} - {output_cool}
Include
-r2
to select an interchromosomal zone.