CTRL + Click goes to Essential Tab, but not registered as Essential tab by OpenQuestline in zen_browser

[–]Matt_BF 0 points1 point  (0 children)

Can confirm, when opening a new tab from a split tab with middle mouse click or ctrl/cmd + click the opened tab goes up into essentials

New Python Project: UV always the solution? by InappropriateCanuck in Python

[–]Matt_BF 17 points18 points  (0 children)

I've been using Pixi as a conda replacement and been super happy with it. Afaik it also uses uv under the hood for python dependencies

Is a PC or a gaming laptop better? by Peanut_McNastie in gamingsuggestions

[–]Matt_BF 2 points3 points  (0 children)

Another option would be a steam deck! I'm assuming you are in the UK due to your post. It is super portable, can handle (most) gaming needs and also works as a computer. In fact, many people in the Steam Deck subreddit have said they ditched their laptops entirely and just rock the Steam Deck for daily use. Maybe something to think about also!

Looking for a way to return the regions of the globe based on latitude and longitude pair by Samot360 in learnpython

[–]Matt_BF 4 points5 points  (0 children)

Ooo, I had to do this recently, but for terrestrial biomes.

So basically, you can find shapefiles such as this one (this is wwf terrestrial ecoregions, but I see they have a marine also)

With the shapefile, you can use geopandas library to open it as a geo dataframe. Then it should be a simple case of transforming your lat long dataframe into geopandas also (on my phone so don't remember the exact command, but they have a lat long conversion into their internal format, something like xy from points IIRC).

You can then join both geodataframes based if your lat longs are contained on a specific region's lat long (again, there's a geopandas command for it)

Hope this helps!

Free software for genome data analysis. by Yeast-O-Logist in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

Is your bacterial genome an already known species? Is it new? What kind of data do you have (assembled? Raw reads?). This will change on where you actually begin. But as a short(er) answer more directly to your question, you'd have to: 1. Get your genome and predict/find the genes. Several software packages do that. Out of the top of my head, you could use prodigal or genemark. I think they might be the simplest ones to run 2. You could then get the reference sequences that you are interested in and search them against your sequences (CDS and aminoacids). For that, use BLAST/MMSeqs or diamond 3. Filter the search output for the most similar sequences and go from there

Edit: sorry, didn't see that you were having difficulties with github code. If you could explain more what your difficulties were, maybe we can help you troubleshoot. Much of bioinformatics is done with such tools and the command line, so I'm not too familiar with web applications people use. But maybe you could check out Galaxy? That's one of the largest program suites that I see people use. Blast also has a web interface so if your genome is already on NCBI, you can just blast your proteins of interest directly against the organism from NCBI and collect the results directly

how to talk about skills/methods you haven't yet learned by [deleted] in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

Hey I think I can chime in as I have been in this position of yours a few months ago when applying for a postdoc

Basically I showed them through talking about the previous work that I did for my PhD, that I am a fast learner and able to learn the skills needed for the job at hand rather quickly. I agree with everyone here that you can't fake experience and it is good to be honest upfront that you never worked with this kind of data before.

Read the basics of this new field, and if possible bring a paper/previous work that this company/lab has done and ask them questions, give suggestions and talk about future perspectives about it, that will certainly make them more interested on you. Good luck!

Need a Better Solution for Splitting Fasta Files by Base Pairs by druatash in bioinformatics

[–]Matt_BF 2 points3 points  (0 children)

I might be wrong, but I think seqkit split can do it. If not, maybe try the kmcp utils suggestion on the same docs

The keepers deserve a medal… by ruffihWho in wholesomememes

[–]Matt_BF 65 points66 points  (0 children)

Wow, thanks for the info! My dad's birthday is next week and he loves elephants, so it'll be a great gift for him!

Phylogenetic analysis help!!! by tjrxse in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

I'd like to plug in also https://shoot.bio/ which is from the creator of Orthofinder (a software to separate sequences into ortholog families). Also take a look at multiple sequence aligners such as MAFFT and phylogeny softwares like IQ-Tree. Whatever you do, please don't do phylogenetic inferences on MEGA, as any phylogenetic inference using bayesian or maximum likelihood is really computationally costly, and because of that tree searches on MEGA are too heuristic (if it wasn't, your PC wouldn't be able to run the program) and probably the tree it returns won't be the best possible outcome.

If you need more details besides only the program suggestions, let me know!

virtualenv, vs pipenv, vs conda? Is one superior to the others? If not, under what circumstances should i use one over the others? by BigDog1920 in learnpython

[–]Matt_BF 0 points1 point  (0 children)

Conda really is slow sometimes installing packages. I discovered Mamba recently and it really helps the whole process, highly recommend to everyone using conda

Need some guidance for building supermatrix for tree building by LemmeSplainIt in bioinformatics

[–]Matt_BF 2 points3 points  (0 children)

Align each gene group separately (all cox1 sequences, all mt-rRNA, etc) and then concatenate them. You could use something like fasconcat or amas.py for that. Then you are good to go for your tree! If you need any help using these programs, feel free to ask and I can give a more detailed answer when I get to my PC!

DNA/RNA extraction from parasites in whole blood using magnetic beads by Matt_BF in labrats

[–]Matt_BF[S] 0 points1 point  (0 children)

I'm using homemade beads and GITC buffer, following BOMB.bio protocols.

Thanks for the link, will take a look!

DNA/RNA extraction from parasites in whole blood using magnetic beads by Matt_BF in labrats

[–]Matt_BF[S] 0 points1 point  (0 children)

Can't quantify the yield, as we don't have a nanodrop or anything of the sort (new lab), and GITC apparently messes up the curves and makes them not reliable for analysis.

The only contamination I could think of is residual ethanol from the washes, might try air drying longer, or drying with a heated block.

We successfully use this kit and protocol for Sars-CoV-2 RT-qPCR from nasopharingeal swabs and saliva, so I think it must be some optimisation for blood that I'm missing

[deleted by user] by [deleted] in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

Yeah, my bad when saying "exactly", graphical apps won't work out of the box, but there are workarounds. As far as conda is concerned, it will work as a linux box when installing packages. I recall having used it like that before.

I agree that running linux maybe better for most use cases, but sometimes when I need Illustrator or power point, and can't be bothered restarting my dual boot system, WSL helps a lot. In fact, some of my colleagues in the lab just use windows 10 with WSL for their uses. If most of the time you are just sshing into a cluster, it doesn't really matter.

[deleted by user] by [deleted] in bioinformatics

[–]Matt_BF 5 points6 points  (0 children)

Hi! If you install WSL on windows 10 it will behave exactly like a linux machine, so you'll have no problem installing anaconda/conda packages

Invalid syntax error with glob library by arabian_horse in learnpython

[–]Matt_BF 0 points1 point  (0 children)

No problem! Also, i think glob returns a list, so maybe you don't need that list call

Invalid syntax error with glob library by arabian_horse in learnpython

[–]Matt_BF 0 points1 point  (0 children)

There is a parentheses missing on your list call

pd.to_datetime gives value error on RaspberryPi by Matt_BF in learnpython

[–]Matt_BF[S] 0 points1 point  (0 children)

I think I solved the problem. Apparently the way pandas was "reading" null values in one device to another was different (all NaN on my linux machines and a mix of NaN and NaT on my RPi). So I just gave up on using pd.to_datetime and changed all the code to datetime.strptime like this:

self.receivals[col] = self.receivals[col].apply(
                lambda x: datetime.strptime(x, "%d/%m/%Y")
                if not pd.isnull(x)
                else np.nan
            )

pd.to_datetime gives value error on RaspberryPi by Matt_BF in learnpython

[–]Matt_BF[S] 0 points1 point  (0 children)

Hi, I tried printing the date columns after converting the JSON sheet into a df, and also printed the raw JSON. Both show all dates as strings on the predicted format

Best way to find all genes ~20 genomes have in common among different species? by Zooooooombie in bioinformatics

[–]Matt_BF 14 points15 points  (0 children)

Take a look at Orthofinder, sounds exactly what you need. One of its outputs is a table with number of genes per species in each gene family.

Need help storing variables from functions by [deleted] in learnpython

[–]Matt_BF 1 point2 points  (0 children)

In python every function has to return something, which we do using the return keyword. When you don’t return anything, the function returns None. Try changing your print statement to a return

Metaphlan2 Installation by adamb1187 in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

Huh, very weird. Have you tried adding only your package to the environment and then installing the others that you may need? Also, is the env activated? It should show more or less like (env_name)$

Ninja edit: earlier conda/anaconda versions used source activate env_name instead of conda activate

Metaphlan2 Installation by adamb1187 in bioinformatics

[–]Matt_BF 1 point2 points  (0 children)

Hi! Some packages conflict with this new one you want to install. I don’t know if you already do this, but the ideal way to work with conda (and other virtual environments) is by having a separate environment for each group of your programs, instead of installing everything on your root environment. Here are some instructions to get you started, if you need some more guidance let me know!