Questions tagged [perl]

Generally refers to Perl5 and is a much loved computer language of exceptional beauty and simplicity. It is the hallmark of exceptional character.

Filter by
Sorted by
Tagged with
1
vote
1answer
28 views

Using txt file to query Ensembl API

I am trying to use an external file with a list of gene names to query the ENSEMBL IDs using the perl API. This script works: ...
2
votes
1answer
38 views

How to know if ID correspond to nucleotide sequence or protein with a script

I have a text file that contains a list of IDs (314 sequences): AVP78031.1 AVP78042.1 ATO98108.1 ATO98120.1 ATO98132.1 ... My goal is to make a script (maybe using ...
2
votes
0answers
17 views

Tajima-Nei Distance estimate with BioPerl

I have been trying to estimate Tajima-Nei distance for my data (link below). I´m following this protocol from BioPerl: https://metacpan.org/pod/Bio::Align::DNAStatistics I have 314 sequences in a ...
1
vote
1answer
37 views

how to repeat records in fastq n times efficiently?

How to iterate/repeat a record n times in a fastq file using bioawk? I wrote a python code using biopython, but it is very very slow. So, I am wondering if I can get some help by using bioawk. Thank ...
1
vote
1answer
64 views

Can't locate object method “new” via package Bio::Tools::Primer3

Hi there I am still a novice at this. I'm trying to run this perl script called FullSSR https://sourceforge.net/projects/fullssr, by following the instructions in their 'README.TXT' https://...
0
votes
1answer
157 views

Removing stop codons from alignment file for dn/ds calculation

This is one of the question which is very similar to my problem or almost same to my problem I ran with dummy data nucleotide alignment and the amino file it works perfectly fine,i can run the dn/ds ...
1
vote
2answers
113 views

how to use list of gene id to get cds sequence(cds fasta file have many annotation, only gene id: is same to query id)

i have a question when i want to extract cds sequence using gene id. but cds file is not just start with >gene is, it has many other annotation. the only same is star with gene: cds fasta: ...
0
votes
1answer
489 views

How to generate ultrametric phylogenetic trees?

This question has also been asked on Biostars I am going to use ultrametric tree for downstream analysis. I would like to see use the ultrametric tree for Ranger-DTL for infer gene family evolution by ...
2
votes
1answer
216 views

Finding common and unique data set by comparing two files based on their column and to split the columns multiple strings to print in output

I have very large sizes tab-delimited .vcf files and want to match these two / or 3 files based on their position and print to a new .csv file File structures: File_1: tab-delimited file (.vcf) ...
0
votes
2answers
386 views

How to loop multiple function in shell script?

I need to extract sequences one after another consecutively from a large fasta files (multiple fasta files) and each extracted files to be saved in new fasta file (I mean the first sequence extracted ...
1
vote
4answers
752 views

How I can change the name of multiple files at once in R or terminal?

I have 200 .vcf files in a folder with long names like LP6005409-DNA_E03_vs_LP6005408-DNA_E03.snp.pass.vcf How can I change the name of each file to, for ...
2
votes
1answer
64 views

Pattern mining from a genomic sequence

I need to find the following pattern from a genomic sequence ...
1
vote
1answer
36 views

storing SNPs in the genotype file for each chromosome in a separate file

I have already asked this question in another forum but have not got an appropriate answer, so wondering if anyone here can help me? I have a big file with over 3 million columns (SNPs genotypes) and ...
2
votes
0answers
29 views

How to interprete PlasmidSeeker results concerning plasmids?

I've been interested in plasmid detection in bacterial genomes. I tried plasmidfinder and this software found only one plasmid in each of my two bacterial genomes. I was dubious about these results, ...
2
votes
1answer
150 views

“perl: warning: Setting locale failed.” in RepeatMasker

I'm trying to run Repeatmasker in Linux on the command line with: ...
4
votes
1answer
179 views

HDF5 and BioSQL solutions

I'm looking at better database/storage solutions for NCBI virus data, with all attributes particularly year and country of isolation, together with structural data, possible antibody data, T-cell data ...
1
vote
1answer
76 views

Multi-line efetch digging

I'm using efetch to dig out a middle "envelope" protein within a viral genome specifically within fasta format. The code below works but may not be robust for an entire database. Thus I want ...
-2
votes
1answer
89 views

How about BioMoose? [closed]

This is a silly post, but hope it makes a point. We have BioPerl (which never impressed me, in fact there isn't even a BioPerl tag), BioPython (which admittedly is impressive), and even now BioRust. ...
1
vote
2answers
67 views

awk for motif splicing from an amino acid alignment

I'm looking to splice out specific amino acid alignment positions as a continuous motif from an alignment (~15 000 sequences). The code is written in Perl (I agree not many developers now) but ...
1
vote
1answer
722 views

Error in installing Vep

I am trying to installing Vep on Linux but an error is permanent ...
1
vote
1answer
134 views

How to separate a microbial strain of MTB resistant and susceptible drugwise?

Im trying to classify my list into three type: XDR - A strain must be resistant to: ...
2
votes
1answer
75 views

Error while performing “lift-over” of genomic coordinates between two species using Ensembl Compara API

I'm trying to convert coordinates between the reference mouse genome and CAST/EiJ mice strain. Since Ensebml already has alignment available in the browser, I decided to use Ensembl perl API to lift ...
2
votes
2answers
85 views

counting individuals with the present gene and absent gene for each population

I have a folder containing 500 files from different individuals: ...
4
votes
2answers
140 views

Writing a perl script to holding information for two genes

Basically I have a perl script in which I have an array (where each element of the array references a hash) and need to be able to print the array with a dumper function. Thus I need to be able to ...
2
votes
3answers
85 views

assigning different characters to present and absent genes from blast output using perl or python

I have file called pangenome.txt which has only one column containing the names of the genes ...
2
votes
2answers
371 views

Parse out exon coordinates from bed file for each gene

This is my bed file for all the exon coordinates I want to take out all the exons of a given gene. Let say I have gene in chr 1 which starts from chr1 11868 12227 ...
2
votes
1answer
128 views

how to count the number of each allele of CNVs?

I have a bunch of files (vcf format) each containing site and sample annotations of a copy number variant (following example is part of one of my files, I am showing 11 individuals but they are nearly ...
4
votes
1answer
91 views

replacing SNPs with missing calls with a specific string

I have a big file containing 27 columns and nearly 6 million rows. The following is a little example of my file ...
3
votes
0answers
58 views

Trying to show the gaps of each seq on bio::Graphics after converting clustalw

I want a box representing each sequence, positioned as they are in the alignment and with gaps shown as breaks in the each box. I've been having trouble for a while with this and have been trying to ...
1
vote
4answers
442 views

Convert population allele count into population allele frequency by using Perl or Python (translate available Bash into Perl or Python)

I already know the Bash AWK solution and also R code for the question that I am asking. But, my file is so big and with R it takes very long time and I am afraid of AWK's mistake for this computation, ...
2
votes
0answers
2k views

Error “Can't locate List/MoreUtils.pm in @INC” when I run update_blastdb.pl

I encoutered some technical problem when learning BLAST as below: After I use conda install blast to install ncbi-blast, and run the command: ...
-1
votes
1answer
68 views
0
votes
4answers
1k views

For what bioinformatics tasks is Biopython more adapted than Bioperl?

Are there any advantages to learning Biopython instead of learning Bioperl? Ideally, we would learn both, but someone starting out in bioinformatics may have to choose what to learn first depending ...