Giter Site home page Giter Site logo

Comments (13)

kaustubhmote avatar kaustubhmote commented on July 17, 2024

Can you share more information about what these spectra are? Are they acquired in the Echo-Antiecho manner or the States/TPPI/States-TPPI?

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

Also, can you share any of the undersampled datasest to debug this issue?

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Can you share more information about what these spectra are? Are they acquired in the Echo-Antiecho manner or the States/TPPI/States-TPPI?

This is a 3D HNCACB spectrum of a small protein GB1-HttNTQ7 data, its first indirect dimension is acquired in the Echo-Antiecho manner and second indirect dimension is acquired in States-TPPI.As shown in Figure 1.
Figure 1:
UKAV3UN_UX59`4X~%SBHZ$B

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Also, can you share any of the undersampled datasest to debug this issue?

Of course, I will privately send it to your email.

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

In this case, you will have to manually do the echo-antiecho processing. You can take a look at #149 for suggestions on how to do this.

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Also, can you share any of the undersampled datasest to debug this issue?

Of course, I will privately send it to your email.

Sorry, I have privately sent the undersampling data to your email [email protected] three times, but they were all returned. Do you have another email address?

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

Strange. Maybe you can share the folder in dropbox/google-drive and send the link.

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

About reading the non-uniformly sampled data: the ser file in non uniformly sample data generated by Bruker spectrometers is always stored as a 2D. This is the probably appropriate as this is also acquired in a randomized manner, and we can use the nuslist file in the data folder to reshape the data appropriately when required. As such, nmrglue reads it as a 2D data. I believe this should be considered as a bug in nmrglue, and one should write a custom code to check whether the data is non-uniformly sampled, but a simple hack will fix this for now:

dic, data = ng.bruker.read(".") 
data = data.reshape(*data.shape, 1) # reshapes data to a 3d
udic = ng.bruker.guess_udic(dic, data) # this now reads 3 dimensions correctly
data = data.reshape(data.shape[:2]) # reshape back to original 2d if necessary

I will add the custom code for nus when I find some time to do it. For now I have added the bug label to this.

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Thank you very much for your reply, this is a simple and effective method, however, in this case the third dimension is 1, maybe I should use the nuslist file to reshape the data to the three dimensions I want.

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

I just realized that bruker seems to also save a file called ser_full , which is the ser file that has zeros as placeholders for fids that are not acquired. So this should also work:

dic, data = ng.bruker.read(".", bin_file="ser_full") 
data = data.reshape(128, 128, 1024) # reshapes data to a 3d, these numbers seem to be lost in acqus files
udic = ng.bruker.guess_udic(dic, data) # this now reads 3 dimensions correctly

This still needs a proper fix though.

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Yes, but I am not sure whether the file "ser_full" comes with the raw data or is generated by bruker, as shown in the red box in Figure 1.
Figure1:
QF3M${K%{( `T{JHESGF0YP

from nmrglue.

kaustubhmote avatar kaustubhmote commented on July 17, 2024

Ah, it seems to be coming from nmrpipe! No problem. Then this is simpler to work with.

from nmrglue.

18270020070 avatar 18270020070 commented on July 17, 2024

Yeah,but in this case, we first need to read the raw data with the help of nmrpipe. We hope that nmrglue can directly read the undersampled raw data and reshape it into a three-dimensional array (for example, the data is 128x128x1024).

from nmrglue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.