Modifying Vcf field into R
0
0
Entering edit mode
3.1 years ago
AndrMod • 0

I am trying to replace the CHROM and POS of a vcf from this

> NODE_1 56
> NODE_1 456
> NODE_2 45
> NODE_3 111
> NODE_3 211
> NODE_4 78

To this

> Scaffold_10 123556
> Scaffold_10 123956
> Scaffold_7 14575
> Scaffold_8 21457
> Scaffold_8 21557
> Scaffold_2 14569

I wanted to to all this in the R environment. Is there a way? Thanks to everybody

R vcf replacement • 1.0k views
ADD COMMENT
0
Entering edit mode

How do you know which value to replace with what?

ADD REPLY
0
Entering edit mode

I have a further list to the scaffold one with the NODEs; it takes a identical() to check the identities.

ADD REPLY
0
Entering edit mode

You need to give an example, otherwise no one will be able to help you

ADD REPLY
0
Entering edit mode
ADD REPLY

Login before adding your answer.

Traffic: 1291 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6