Skip to content

Commit

Permalink
Add dimnames for genotype export in countsFromVCF
Browse files Browse the repository at this point in the history
  • Loading branch information
lvclark committed Jul 19, 2017
1 parent efe755c commit 50f8473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion countsFromVCF.R
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ countsFromVCF <- function(filename, nread = 1000L, indToKeep = NULL, indToExclud
AllREF <- AllREF[1:currentSNP]
AllALT <- AllALT[1:currentSNP]
}
dimnames(AllDep1) <- dimnames(AllDep2) <- list(AllName, indNames)
dimnames(AllDep1) <- dimnames(AllDep2) <- dimnames(AllGen) <- list(AllName, indNames)
close(vcfFile)

return(list(Names = AllName, Chr = AllChr, Pos = AllPos, Ref = AllREF, Alt = AllALT,
Expand Down

0 comments on commit 50f8473

Please sign in to comment.