bgr files: change chromosome annotation
How would I change chromosome names with sed or awk from 1-22, X, Y to chr(1-22,X,Y)? Is there an expression that I can use?
sed
bedgraph
expressions
awk
• 1,720 views
•
link
updated
by
ATpoint
•
written
by
TheCatalyst •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
Tool: Tool: Quick Command To Change BED file Naming Convention
written by SashaHi, I recently ran into an issue where my bed files were using the incorrect chromosome naming convention and I had to change them from …
-
How to change the chromosome names of the head line of fasta file?
written by Dan •I want to add "chr" to the chromosome names of the head line of fasta file: ``` >1 dna:chromosome chromosome:GRCm38:1:1:195471971:1 REF ``` to ``` >chr1 …
-
VCF files missing some chromosomes info
written by mmghaffar29 •My vcf files show chromosome variants till chromosome 14, though in upper info for contigs it mentions lengths from chr 1 to 22 and X …
-
How to create link file from NUCmer output
written by agata88Hi all! I have out.coords file from NUCmer program and I would like to change it for link file for circos. Unfortunately file out.coords is …
-
How to execute curl with dynamically created URL using Bash
written by nadarajan_v •In bash, I have created a function. In this function, I am constructing an URL that will be used to download a selected chromosome, unzip …
-
Changing chromosome format in bam
written by srhic •Hello, I know there are already multiple threads on this issue and I have gone through most of them but I am new to bioinformatics …
-
How to calculate a % difference change in gene expression from a linear regression.
written by Tom •I have a table like this: Age5 Age5 Age5 Age22 Age22 Age22 Gene1 1.2 2.3 4.5 3.4 4.5 1.3 Gene2 2.4 -2.3 1.3 1.2 3.4 …
-
Ensembl chromosome other than 1-22, X, and Y
written by bharata1803Hello, What is the meaning of chromosome starting with letter K (KI270442.1, KI270467.1, KI270589.1,etc) from ensembl database? O only know human chromosome are 1-22, X …
-
Can the code of a R package be changed? How?
written by Antonio R. FrancoI am using limma, and in representing a volcano plot, it turn out that the gene systematic gene I want to highlight is truncated.. If …
-
how to calculate the number of chromosomes in the human annotation GTF file using Linux command?
written by Y TbI am trying to check the GTF annotation file for human, and I found that in first column which is the chromosome names just 1,2,........X,Y …
what did you find so far ?
Only see for changing the other away around, i.e. chr(1-22,X,Y) to 1-22, X, Y
Basically
awk '{print "chr"$X}'with X being the column where the chromosomes are in. Try to modify this minimal command to fit your needs, there are plenty of posts on that already that will inspire you to complete it.Hi,
Could you post an example of your bgr file, please?
You can do this in terminal by typing:
head your_bgr_file.bgrMake sure you highlight your example and click the
010101button to code the example, so it's easier to copy and paste. You could alsoEdityour post and add it there.-Pratik