Skip to main content

Questions tagged [for-loop]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
120 views

How to debug a bash script

Please somebody debug my code In sub-folders there are 500000 vcf files from which I only need 500 vcf files listed in ...
Zizogolu's user avatar
  • 2,160
0 votes
1 answer
37 views

A function to produce M fragments of DNA with length of I

I want a script in R, which creates M fragments of DNA with a length of I but with GC content of >70% I know this gives ...
Zizogolu's user avatar
  • 2,160
1 vote
1 answer
100 views

For loop in Python goes wrong

I have mutation status (0,1) for ten genes in ten cancer 3D models I have also gene expression in these 3D models, like ...
Zizogolu's user avatar
  • 2,160
0 votes
1 answer
75 views

Replace a string in a column of a text file based on matching string listed in another file using linux

I have multiple sets of files, so I grepped the list from a column in a seperate file such as file1.txt. I want to change all other files by using this file1.txt based on a matching string. for ...
Umar's user avatar
  • 135
5 votes
4 answers
508 views

How to rename a file based on a directory name?

I have a lot of FASTA files that I recently scaffolded with RagTag. The output of RagTag includes a directory for each sample and the corresponding FASTA file written as "ragtag.scaffold.fasta&...
rimo's user avatar
  • 1,003