fork download
  1. cov_stats <- c("./stats/SRR18826803_stats.txt", "./stats/SRR18826804_stats.txt", "./stats/SRR18826805_stats.txt", "./stats/SRR18826806_stats.txt", "./stats/SRR18826807_stats.txt")
  2. sub("^\\./stats/(SRR\\d{8}).*", "\\1", cov_stats)
  3. ## => [1] "SRR18826803" "SRR18826804" "SRR18826805" "SRR18826806" "SRR18826807"
  4.  
  5.  
Success #stdin #stdout 0.28s 39088KB
stdin
Standard input is empty
stdout
[1] "SRR18826803" "SRR18826804" "SRR18826805" "SRR18826806" "SRR18826807"