This code may be useful, Biostrings has to be installed, which can be done with conda.
https://stackoverflow.com/a/32770831https://bioconda.github.io/recipes/bioconductor-biostrings/README.html
It is possible to change the names of the columns in a dataframe with names().
The code should be in a function, which takes an input file, an output file and a parameter which will be added to all entries in the column "realmiRNA", which can be 0 or 1.
This code may be useful, Biostrings has to be installed, which can be done with conda. https://stackoverflow.com/a/32770831 https://bioconda.github.io/recipes/bioconductor-biostrings/README.html It is possible to change the names of the columns in a dataframe with names(). The code should be in a function, which takes an input file, an output file and a parameter which will be added to all entries in the column "realmiRNA", which can be 0 or 1.
Example input file:
Function gets called with real=1: Output file: