Skip to content

Commit

Permalink
documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
renewiegandt committed Dec 15, 2018
1 parent 1bb8521 commit 50fb433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bin/bed_to_fasta.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ min_seq <- args[3]

bed <- data.table::fread(bedInput, header = FALSE, sep = "\t")

clusters <- split(bed, bed$V11, sorted = TRUE, flatten = FALSE) # <---- Spalte mit Cluster
clusters <- split(bed, bed$V11, sorted = TRUE, flatten = FALSE) # <---- Cluster column
discard <- lapply(1:length(clusters), function(i){
clust <- as.data.frame(clusters[i])
print(nrow(clust))
if (nrow(clust) >= as.numeric(min_seq) ) {
sequences <- as.list(clust[[10]]) # <---- Splate mit Sequenz
sequences <- as.list(clust[[10]]) # <---- sequenze column
outfile <- paste0(prefix,"_cluster_",i,".FASTA")
seqinr::write.fasta(sequences = sequences, names = clust[[4]], file.out = outfile, as.string = TRUE) # <---- Spalte mit Name
seqinr::write.fasta(sequences = sequences, names = clust[[4]], file.out = outfile, as.string = TRUE) # <---- Name column
} else {
print(paste0("Cluster: ",i," is to small"))
}
Expand Down
2 changes: 1 addition & 1 deletion bin/motif_estimation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ motif_similarity_thresh = 0.00001 // threshold for motif similarity score

if (params.bed == "" || params.out == "" || params.motif_db == "" || params.path_env || "${params.help}" == "1") {
log.info """
Usage: nextflow run pipeline.nf --bed [PATH] --out [PATH] --motif_db [PATH] --path_env YAML-file
Usage: nextflow run motif_estimation.nf --bed [PATH] --out [PATH] --motif_db [PATH] --path_env YAML-file
--bed Path Input BED-file (Column with cluster: 11; column with sequenze: 10)!!
--out Path Output Path
--motif_db Path Path to MEME-Database
Expand Down

0 comments on commit 50fb433

Please sign in to comment.