MadsAlbertsen / mmgenome

Please use mmgenome2 instead. Tools for extracting individual genomes from metagenomes
https://kasperskytte.github.io/mmgenome2/
27 stars 8 forks source link

More convenient output from mmplot_locator (so it’s easier to copy and paste) #20

Closed nr0cinu closed 4 years ago

nr0cinu commented 9 years ago

Hi Mads!

I’m using mmplot_locator quite a lot, and I think this improvements would make the constant copy and pasting easier ;) Let me know what you think!

Best, Bela

Example output of current behaviour:

[1] "N1_average_coverage  =  c(17.5, 16.6, 25, 24.4)"
[1] "N2_average_coverage  =  c(17.5, 12.5, 11.1, 16.9)"
  N1_average_coverage N2_average_coverage
1            17.47362            17.53019
2            16.63933            12.47095
3            24.95645            11.14407
4            24.43863            16.85083

Example output of improved behaviour:

N1_average_coverage = c(17.1, 16.7, 24.8, 25),
N2_average_coverage = c(17.4, 12.3, 11.1, 16.7)

  N1_average_coverage N2_average_coverage
1            17.11106            17.37102
2            16.69758            12.28280
3            24.78264            11.07651
4            25.04381            16.69783
Kirk3gaard commented 6 years ago

Changing the output linee in mmplot_locator from: show(paste(colnames(sp)[1], " = ", list(signif(sp[,1], sig)))) show(paste(colnames(sp)[2], " = ", list(signif(sp[,2], sig)))) to show(cat(paste0(colnames(sp)[1], " = ", list(signif(sp[,1], sig)),","),paste0(colnames(sp)[2], " = ", list(signif(sp[,2], sig))))) can do the trick