3 votes
Accepted

Tidying MEGAN Taxonomy for Python/R Analysis

Save the following as a python script (e.g., named splitty.py). Make the script executable by doing chmod +x splitty.py. Then, ...
user3479780's user avatar
3 votes
Accepted

How to write multi-sequence alignment data frame as a fasta format fast

Update It seems that part of the desired behavior is to write the sequences in the alignment separately. I am not sure that I understand why it is necessary to write them separately. Generally it is ...
Maximilian Press's user avatar
2 votes
Accepted

editing dataframe in r

Adding an answer for now: You can use sub to remove the SVLEN= part. You don't need gsub and ...
Ram RS's user avatar
  • 1,993
2 votes
Accepted

Help to create a dataframe in Python from a FASTA file

Assuming what I said in the comments is true. Here's my attempt, there may be an easier solution but this should do it: ...
user324810's user avatar
  • 1,105
2 votes
Accepted

Adding multiple dataframes to compare against genotypes - DATE/LOCATION - geotemporal incidences of SARS2 genotypes

Just to clarify, when I asked you to share some of your files, I meant to share them in a way that I can reproduce your issue from start to finish. You read from at least four different files in a ...
Bastian Schiffthaler's user avatar
2 votes
Accepted

Converting hmmer --tblout to pandas dataframe

The manual says fields in a tabular output file are space-delimited. It should be fairly straightforward to load a space-delimited file in pandas. From the manual: ...
Ram RS's user avatar
  • 1,993
2 votes

subset from a dataframe using other dataframe in R

you can try this: ...
Nitesh Shriwash's user avatar
2 votes
Accepted

replacement has 1 row, data has 0

I suspect the error is caused by a 'lack' of intersection between "NQLD", "Nlab", and "Nsyl"? If you remove "Nlab" from the first query the command appears to ...
jared_mamrot's user avatar
2 votes

Turning GMT file into data frame so that third column is comma seperated

I used the unite function from tidyr but first I read the gmt file in as a data table using the read.delim function (with header set to False). Then I used unite: ...
tacrolimus's user avatar
1 vote

Merge data frame on either of the 2 columns in R or python

I think this question is more about subsetting than merging. You can try this solution in R: ...
Nitesh Shriwash's user avatar
1 vote

HTTP status code: 400 "Value must be an integer" error uploading JSON schema results to benchling

There is a major issue about the json format required, however just converting to json is easy because ...
M__'s user avatar
  • 11.3k
1 vote

How to identify matching and unique rows across different columns in R data-frame?

When I create the dataframe using the commands you have provided, I get an error, and the data frame can't be created: ...
gringer's user avatar
  • 13.5k
1 vote

Merge/Join one data frame (X) to multiple data frames separately

You can use For Loop here. Here I have created code using your algorithm, first created a list of merged dataframes and then split the list into separate dataframes. ...
Nitesh Shriwash's user avatar
1 vote

Help to create a dataframe in Python from a FASTA file

An example of contructing a pandas dataframe for fasta on Stack Exchange is here . This is clean code deploying zip outside Biopython. Constructing a pandas ...
M__'s user avatar
  • 11.3k

Only top scored, non community-wiki answers of a minimum length are eligible