Closed lokeyCEU closed 2 years ago
The error means that your alignment object does not contain coordinate information. The reason for this, in your case, looks to be that the MAF contains overlapping regions of the reference sequence (Chromosome22). All three blocks of your MAF start with coordinate 0. You will need to produce a MAF file with single coverage along the reference sequence (and sorted by reference sequence coordinate). I think that should solve your issues.
Thanks Melissa I will try that and update this.
Circling back to this because I solved the issue. The issue was an embarrassingly minor bug. My code structure was as follows;
align <- read.msa("msa.maf")
feats <- read.feat("ref.gtf")
align4d <- get4d.msa(align, feats)
Tree <- ("")
neutralMod <- phyloFit(align4d, tree=Tree, subst.mod="REV")
pc <- phastCons(align4d, neutralMod)
The error was caused by trying to test phastCons() on align4d (the 4-fold degenerate sites only). Simply switching to phastCons(align, neutralMod)
(the entire msa.maf) it runs without error (could've sworn I tested this :/ ).
Hopefully this helps anyone else who runs into this issue. Also phastCons() does allow overlapping alignment blocks. I think having overlapping blocks causes the warning mentioned in the original post.
I am attempting to run rphast and have run into the following error
I also got this warning message in a call before the error message above.
I can't find anything on this error and was hoping for some clarification. My MAF file is sorted and fits the standard formatting (created with multiz; see below). Does ordered representation here mean that the MAF should have each species ordered the same as the phylogenetic tree or?
Thanks for any help