Comments (2)
Dear @liquidcarbon, thanks for checking in again. Your second approach with "raw" slicing is the route I always take myself as well.
That said, I do understand the confusion with the first approach. From a technical perspective, it boils down to lines
Lines 1412 to 1413 in f6e55e8
Since return_tof_indices
is True, AlphaTims will slice the tof_indices
as requested. However, providing a None
slice is the same as a full :
or Ellipsis ...
slice, hence all elements are returned.
The confusion probably lies more in the conceptual idea of the function. It is intended to convert raw_indices
to their actual coordinates. The additional frame_indices
and other index options are only intended for performance reasons and to avoid additional computation.
This is somewhat hinted at by the fact that raw_indices
are the only accepted non-keyword argument. Probably it is a good idea to remove the default None
option to show this is an essential keyword and to update some of the documentation. If you have any suggestions, feel free to make PR into the dev branch. If not, I'll probably get to this myself in the future at some point...
from alphatims.
I can get around it by asking
data.convert_from_indices(
raw_indices=data[[1,2], "raw"],
return_tof_indices=True,
)
Not a big deal - was just wondering if that's expected behaviour.
from alphatims.
Related Issues (20)
- Error on loading the data HOT 6
- np.uint16 sufficient for intensities? HOT 8
- recode polarity to int HOT 2
- loading data that were collected without mobility acquisition HOT 4
- File extension not understood HOT 1
- No plots are shows when using the GUI in Google Chrome or Firefox HOT 4
- python 3.10 HOT 4
- 1.0.5 GUI wont start HOT 2
- Unable to read data folder on some systems HOT 2
- [Pitch] Docker Image HOT 9
- [Question] precursor_indices definition HOT 2
- Synchro/slice data import HOT 7
- Numpy Dependency issue "Attribute not found" HOT 1
- [Maintainance] CICD HOT 3
- Exporting diaPASEF as mgf HOT 2
- [Question] Centroiding of TimsTOF class objects HOT 1
- [Question] Precursor masses from XML settings are not present as indices in raw data HOT 5
- Only increasing indices are supported: Can combinations of recurring elements be retrieved at once? HOT 5
- Remove warning message on module load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alphatims.