I have a file with following columns:
seqname start SNP gene
ch01 21900 ch01_21900 H024400
I have a gff file with following columns:
V1 V2 V3 V4 V5 V6 V7 V8 V9
ch01 MAKER cds 21882 22007 . - 0 ID=H0224400
I want the difference in base pair between start column of File1 and V4 column of gff file. I used:
distance<-File1$start - gff$V4
It did not output anything. File1 has 20 rows and gff file 10000 rows. I want to calculate the difference for same genes (Column gene in File1 and Column V9 in gff file). thank you!