Questions tagged [pairwise]
273 questions
3
votes
1 answer
Pairwise alignment of multi-FASTA file sequences
I have multi-FASTA file containing more than 10 000 fasta sequences resulted from Next Generation Sequencing and I want to do pairwise alignment of each sequence to each sequence inside the file and store all the results in the same new file in…

Aurora
- 31
- 4
3
votes
1 answer
rxjs pairwise is emitting duplicate values
I'm trying to create two scroll event observable for both scroll direction vertical and horizontal.
I tried using pairwise() and bufferCount(2,1) operators to filter vertical scroll event from the horizontal one, but the problem is with getting…

Murhaf Sousli
- 12,622
- 20
- 119
- 185
3
votes
0 answers
dunn's test plot - which package?
I came across a Dunn's test plot :
Is there a package that can make these plots? I have run Dunn's test and want to present my data graphically.

user1607
- 531
- 7
- 28
3
votes
0 answers
Use pairwise_tukeyhsd compare for all or multiple groups(more than 2)
I have a dataset where I need to perform Tukey_test on multiple variables instead of pair-wise comparison:
My data looks like:
Subject State Type Success
A AZ 1 0.89
B TX 2 0.91
C NJ…

TjS
- 277
- 2
- 5
- 16
3
votes
1 answer
Spark Python: How to calculate Jaccard Similarity between each line within an RDD?
I have a table of around 50k distinct rows, and 2 columns. You can think of each row being a movie, and columns being the attributes of that movie - "ID": id of that movie, "Tags":some content tags of the movie, in form of a list of strings for each…

Ruby.L
- 41
- 1
- 3
3
votes
1 answer
How to construct square of pairwise difference from a vector in tensorflow?
I have a 1D vector having N dimension in TensorFlow,
how to construct sum of a pairwise squared difference?
Example
Input Vector
[1,2,3]
Output
6
Computed As
(1-2)^2+(1-3)^2+(2-3)^2.
if I have input as an N-dim vector l, the output should be…

clement116
- 317
- 2
- 11
3
votes
0 answers
Python: DLL load failed when import .pairwise_fast
I tried to use librosa to convert raw audio into mel-spectrogram and got this error. At first, it runs perfectly, but after I install tensorflow and keras, it goes wrong. I 've uninstalled tensorflow and try again but it still has this…

Trần Trâm
- 31
- 2
3
votes
1 answer
RxJS keep old and new value on emission
I have been trying to get the old and new value in every emission. I have seen the option of using pairwise or bufferCount but they don't allow to keep the first value.
The goal would to go…

Roman Oxman
- 377
- 6
- 18
3
votes
1 answer
Multiple comparisons with geom_signif function, R
The package ggsignif is very useful for quickly and easily indicating significant comparisons in ggplot graphs. However the comparisons call requires manual typing of each pair of values to be compared.…

J.Con
- 4,101
- 4
- 36
- 64
2
votes
2 answers
How can I calculate pairwise cosine similarity across multiple vectors in Python?
For the purposes of keeping it simple I have four vectors -- W, X, Y, Z -- that contain a number of values (each the same length). I'm trying to calculate cosine similarity across them pairwise in Python, but I can't seem to get the right…

chr
- 81
- 1
- 9
2
votes
1 answer
R: Creating value of difference from baseline in many groups
I need to do something I think is quite simple, but it's difficult to word the problem, so I haven't manage to google a solution.
I have a dataframe similar to the one below, but much longer. I have many Sites, each with two Treatment groups:…

nn90
- 35
- 4
2
votes
1 answer
glmmTMB: Pairwise comparison post-hoc tests for factors interaction
In my example:
# Packages
library(glmmTMB)
library(DHARMa)
library(multcomp)
library(lsmeans)
library(car)
# My data set
ds <- read.csv("https://raw.githubusercontent.com/Leprechault/trash/main/temp_ger_ds.csv")
str(ds)
#'data.frame': 140 obs. of …

Leprechault
- 1,531
- 12
- 28
2
votes
1 answer
Apply function to multiple row pandas
Suppose I have a dataframe like this
0 5 10 15 20 25 ...
action_0_Q0 0.299098 0.093973 0.761735 0.058112 0.013463 0.164322 ...
action_0_Q1 0.463095 0.468425 0.202679 0.742424 …

King Powa
- 441
- 3
- 9
2
votes
1 answer
Pairwise comparison algorithm with time complexity better than O(n**2)
I have around 500,000 arrays of 10 words i.e. 500,000 word 10-grams. For every 10-gram, I need to know in which positions, if any, the remaining 499,999 10-grams have identical elements:
a = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J']
b =…

melanuria
- 21
- 3
2
votes
1 answer
Python: Get part of string between appropriate braces and symbols
For if i have the following in a text file:
{
fun cake(){
"im cute"
subfun notcake(){
"dont close the question!"
}
}
fun notcute(){
"Did you just say..."
}
}
i want to get the stuff between two braces of the fun cake().
Those particular braces, and…

Xephonine
- 49
- 7