Questions tagged [intersection]

Intersection is a term that relates to descriptive geometry and functions. Intersections are points which are included in multiple objects. They are intersections of the object they belong to.

2483 questions
0
votes
1 answer

How to generate a custom bed file to use for bedtools intersect?

I have a custom reference genome, gene.fa and 18 bed files. I want to generate a bed file that contains a region of interest, 5100-5600 bp, as a single entry that I can use for intersection using bedtools intersect on my 18 bed files. I was thinking…
Cam
  • 111
  • 1
  • 8
0
votes
1 answer

SQL - Intersections

I have table like below: |Group|User| | 1 | X | | 1 | Y | | 1 | Z | | 2 | X | | 2 | Y | | 2 | Z | | 3 | X | | 3 | Z | | 4 | X | I want to calculate intersections of groups: 1&2, 1&2&3, 1&2&3&4. Then I want to see users…
Joe
  • 69
  • 1
  • 8
0
votes
0 answers

Intersection of n matrices in MATLAB

I have a structure of high number n (3000, 5000...) of elements, each element is represented by matrices InputMat and OutputMat of different dimensions. I want to form groups where the elements of each group share AT THE SAME TIME a least one…
Asma
  • 13
  • 4
0
votes
1 answer

Elasticsearch / Opensearch - intersection of common values in arrays

given a = [1,2,3,4] and b = [1,3] c = [5,6] d = [1,6] how can i find the exact number of common values of a with b,c,d in elasticsearch? I would expect: b -> 2 c -> 0 d -> 1
0
votes
1 answer

Find common values in multiple lists and plot a graph too (python+NetwrokX)

I would like to find numbers that exist in all the lists.i'm trying but this code giving me unhashable error. anybody else help me how i can remove this error ?? code and screenshot are given below import networkx as nx G =…
Faiza Omer
  • 25
  • 5
0
votes
2 answers

JS List intersection for my use case

I am a javascript newbie so bear with me. I have lists as so: var list1 = ['a','b','c']; var list2 = ['c','d','e']; var list3 = ['f','g']; As you see, list1 and list2 intersect at 'c' while list3 is disjoint from both list1 and list2. The result…
Karan Ashar
  • 1,392
  • 1
  • 10
  • 23
0
votes
0 answers

Intersection of points and polygons using geopandas

I am using the Australian Bureau of Statistics data (ABS) to visualize meshblocks and boundaries of buffer data from a centre of location with certain radius. I want to create the following plot: intersection plot So far, I am able to create a…
0
votes
1 answer

How to find the numeric value of the intersection point between an axvline and axline in matplotlib?

I have the code below and I needed to find the numerical value of the intersection point between the axline and the axvline, I have no idea how to solve this in a simple way, does anyone know how to solve it? Infinite thanks in advance! :) !pip…
jose silva
  • 15
  • 2
0
votes
1 answer

Comparing lists with order

I wish to compare lists and output the similar matches that following each other in the same order. list1 = ['a','b', 'b', 'c'] list2 = ['b', 'a', 'a', 'c'] # With the intersection() command, the output is the matching strings regardless of the…
0
votes
1 answer

How to determine if lists have at least one same element

Product table contains tags columns: create table product( product char(20) primary key, tag1 char(100), tag2 char(100) ) tag columns contain tags separated by semicolon like AB;AC;AD RXX;AC;XAD RP12;X455;R444;AXD How to find all rows where…
Andrus
  • 26,339
  • 60
  • 204
  • 378
0
votes
0 answers

CGAL intersection of line and circle with circle extremal point processing circular arcs expand

I'm new to using CGAL library and trying to get the intersection of line and circle The circular_kernel is Exact_circular_kernel In the general case, intersection is just fine But there did not have any…
0
votes
2 answers

Python, how to fill an empty dataframe with lists

I'm trying to write a code to save in a matrix the common elements between some lists. Example: Data frame with all the lists: ID elements of the ID G1 P1,P2,P3,P4 G2 P3,P5 G3 P1,P3,P5 G4 P6 I start with an empty matrix having…
Andrea
  • 91
  • 10
0
votes
0 answers

Python, Pandas and intersection - not PIVOT

This isn't a straightforward pivot question. I don't want to create new named columns (or numbered ones). What I am looking for is to find a way to search for actors that satisfy the asked question, such as: Any ACTOR that has UP and DOWN in the…
TheBasalt
  • 21
  • 3
0
votes
0 answers

Unity URP Shader GrabPass vs MultiplePasses

Im working on intersection shader on URP that can recolor (grayscale) intersected area. So i got it working on SRP but when using URP its not working properly. I think its something wrong with GrabPass on URP. And i need help.…
RootiK
  • 23
  • 4
0
votes
0 answers

Common values, intersection, text data, data frame, pandas

I have a dataframe in python code. I want to extract the common valves from dataframe and save these common values in next column. I have a column name articles and compare this column with words and save each values to the next column in python…
1 2 3
99
100