Jun,
I don’t think so. Sorry.
Best,
Woonghee
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
--
You received this message because you are subscribed to the Google Groups "NMR POKY/SPARKY USER GROUP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
nmr-sparky+...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/67adeba9-51b8-4a55-af67-686cf00c7c4an%40googlegroups.com.
Would you elaborate for others?
I remember I added some features to support pseudo/meta nomenclature a few years ago, so I think it will sort of works if you follow IUPAC but I am uncertain it resolves # and 1/2 postfixes.
Woonghee
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/43e678d7-c7e6-456a-b26b-062a816aaf1an%40googlegroups.com.
Use Q for queudo protons and M for methyl protons.
That’s what I thought it would work. You can just detach the number at the end as well
Another issue with assignment distance extension is that when I click a peak, the peak assignment and alterative assignments will be listed in the window. If I click one assignment in the list, the peak location will automatically move to the position corresponding to the assignment. My question is whether there is a way to assign the assignment to a variable that I want to use later?
It needs some thinking on the user interaction on the ui. Some fix might end up with unexpected problems. But I will think.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/67f30945-8a3d-4241-8e40-15fed6ded31en%40googlegroups.com.
Dear Jun,
pora.assignment will give you what you want to know.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/8ce414b7-9a24-463a-a88f-6f62722cbb6an%40googlegroups.com.
Sorry. Try pora[0].assignment instead.
Cheers,
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/3bdc876c-3c74-42bd-bebc-dbc5058fc7e3n%40googlegroups.com.
Basically, you loop the pora tuple and write assignment.
outFile=open(‘./junk’,’w’)
for p in pora:
outFile.write(p.assignment)
outFile.close()
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/CAC64C84-78AF-41BE-9F95-1FE62927C2C5%40ucdenver.edu.
Jun,
pora is either peak instance or a tuple of resonances.
So you can try to write
pora.assignment
or
‘%f,%f,%f’ % pora
So you can try to use “try”
try:
outFile.write(pora.assignment)
except:
outFile.write(‘%f,%f,%f’ % pora)
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/0cd5166c-1ea1-4146-b303-74b3702e6da8n%40googlegroups.com.
Jun, my bad. It should be,
try:
outFile.write(pora.assignment)
except:
outFile.write(‘%s,%s,%s’ % (pora[0].name, pora[1].name, pora[2].name))
Let me know if that doesn’t work.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/58ad8b50-0125-4c46-9b4c-dc794f95c56an%40googlegroups.com.
Hi Jun,
2. If you just use ‘w’, it will overwrite the file. I wonder if you want to use ‘w+’ instead.
3. “pora.assignment” is valid when pora is an instance of Peak class. If not, it will go into except block because “assignment” isn’t callable. In that case, the pora is a tuple of Resonance class and they will have ‘name’ member variable.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/80c5b639-3f79-4272-85e7-8b73b7ea15c3n%40googlegroups.com.
2. Probably, ‘a’ not ‘w+’. Sorry again. But you have to make sure to close the file when leaving the function.
Cheers,
Woonghee
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
From: "Lee, Woonghee" <WOONGH...@UCDENVER.EDU>
Date: Monday, June 7, 2021 at 1:45 PM
To: Jun Yang <yangj...@gmail.com>
You are right.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/417a19e9-b5d7-4951-a275-9da38e6c0eefn%40googlegroups.com.
Jun,
You can simply search “self.peak_list.append” in the distance.py. Second argument to the function will be set to pora. There are only four cases.
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/79fb61fc-144d-4910-a55c-91d27ad04b24n%40googlegroups.com.
pyperclip is the third-party module that does not come with NMRFAM-SPARKY.
You should use tk’s functions.
You can clear and add some texts to the clipboard by
session.tk.clipboard_clear()
session.tk.clipboard_append(‘something’)
To view this discussion on the web visit
https://groups.google.com/d/msgid/nmr-sparky/2890e6af-e57c-4946-ab82-62f4982d9745n%40googlegroups.com.
Hi Jun,
It works for both datasets. You cannot open two “ad” windows at the same time. You should change the spectrum in the same window.
Best,
Woonghee
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
From: <nmr-s...@googlegroups.com> on behalf of Jun Yang <yangj...@gmail.com>
Date: Monday, August 2, 2021 at 5:07 PM
To: NMR POKY/SPARKY USER GROUP <nmr-s...@googlegroups.com>
Subject: Re: [NMR POKY/SPARKY] methylene and methyl proton assignment names in sparky
[External Email - Use Caution]
To view this discussion on the web visit https://groups.google.com/d/msgid/nmr-sparky/44fb8109-4825-40dc-83fe-23182dcedf63n%40googlegroups.com.
Hi Jun,
Just open Command Finder (cf) and type crosshair. There are a few options you can try. If neither works, you can try to change the axis order by nmrPipe.
Best,
Woonghee
--
Woonghee Lee, I.E.I.P., M.S., Ph.D.
Assistant Professor
Department of Chemistry
University of Colorado Denver
1151 Arapahoe St. (Science Bldg.) Rm 4128A
Denver, CO 80217-3364, USA
Office: +1-303-315-7672
https://poky.clas.ucdenver.edu
https://poky.clas.ucdenver.edu/wlee-group
https://clas.ucdenver.edu/chemistry/woonghee-lee
Shipping/Mailing Address:
Woonghee Lee
1201 5th St. UCD CHEM-194
P.O. Box 173364 (USPS)
Denver, CO 80204, USA
From: <nmr-s...@googlegroups.com> on behalf of Jun Yang <yangj...@gmail.com>
Date: Wednesday, August 4, 2021 at 10:43 AM
To: NMR POKY/SPARKY USER GROUP <nmr-s...@googlegroups.com>
Subject: Re: [NMR POKY/SPARKY] methylene and methyl proton assignment names in sparky
[External Email - Use Caution]
To view this discussion on the web visit https://groups.google.com/d/msgid/nmr-sparky/2c64e5e4-3621-4c83-8097-d4c75b31b539n%40googlegroups.com.
Hi Jun,
‘rx’ is to show the peak marker for reduced dimensionality experiments that y axis position needs offset adjustment.
You cannot rename one proton axis name to the other because it will be changed back to 1H again. Still I believe changing the axis order works.
To view this discussion on the web visit https://groups.google.com/d/msgid/nmr-sparky/9426d5f8-b509-4511-9078-dbee2611139an%40googlegroups.com.