Skip to content
Snippets Groups Projects
Commit 878e083e authored by Dominik Brilhaus's avatar Dominik Brilhaus
Browse files

quick-fix duplicated loci for mapman

parent 909c0599
No related branches found
No related tags found
No related merge requests found
No preview for this file type
This diff is collapsed.
...@@ -2,12 +2,17 @@ load(file = "runs/kallisto_combined/mothertableV3.Rdata") ...@@ -2,12 +2,17 @@ load(file = "runs/kallisto_combined/mothertableV3.Rdata")
# now we make a data.frame with the data required for Mapman loading # now we make a data.frame with the data required for Mapman loading
# if you have more fold-changes, you can load more than one # if you have more fold-changes, you can load more than one
forMapman <- dfr[, c("locus", "log2FC")] forMapman <- dfr[!duplicated(dfr$locus), c("locus", "log2FC")]
### TODO: the `duplicated` solution is a quick-and-dirty fix to avoid duplicated
### locus IDs coming from mapping on transcript level
### (plus Mapman accepts AT1G01040, not AT1G01040.1)
head(forMapman) head(forMapman)
# now we export the data.frame in biologist and mapman readable format # now we export the data.frame in biologist and mapman readable format
dir.create(path = "runs/mapman", recursive = T, showWarnings = F) dir.create(path = "runs/mapman", recursive = T, showWarnings = F)
write.table(forMapman, write.table(forMapman,
file = "runs/mapman/forMapmanloading.txt", file = "runs/_backup/mapman/forMapmanloading.txt",
quote = F, sep = "\t", row.names = F quote = F, sep = "\t", row.names = F
) )
remove(forMapman) remove(forMapman)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment