This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Functions to expand VariantAnnotation CollapsedVCF object and convert to a data frame | |
## Author: Sean Davis and Jack Zhu@Meltzerlab, 12/18/2016 | |
## Function to parse ANN column in to a dataframe | |
.anncols = function(anncol,headerstring) { | |
anncols = strsplit(sub("Functional annotations: '",'', | |
headerstring),' \\| ')[[1]] | |
dfannempty = data.frame(matrix(vector(), 0, length(anncols), | |
dimnames=list(c(), anncols)), | |
stringsAsFactors=F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Use find | |
# | |
for f in $(find . -maxdepth 1 -type l);do cp --remove-destination $(readlink $f) $f;done; |