How can I introduce a lower case letter before an underscore in a gff3 file

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have used the following command to introduce a letter in front of underscores in my gff3 file as requested by the program i am using to generate a genepred file:



sed 's/;_/;x_/g' in.transcripts.gff3 > altered.transcripts.gff3


However, the output file contained an uppercase x instead of the lower case as expected, despite using the lower case in the command.I get the following error messages when I use the altered file to generate a genepred file:



-user defined attributes must start with a lower-case letter:X_AED


How can I change a letter within a file from upper to lower case.










share|improve this question









New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Were the uppercase X’s already there? They should not even introduced by your sed command.
    – Jeff Schaller
    Oct 4 at 12:06










  • Th upper case X's were not there before, I introduced them because the
    – Yewon
    Oct 4 at 12:41










  • The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
    – Yewon
    Oct 4 at 12:53














up vote
0
down vote

favorite












I have used the following command to introduce a letter in front of underscores in my gff3 file as requested by the program i am using to generate a genepred file:



sed 's/;_/;x_/g' in.transcripts.gff3 > altered.transcripts.gff3


However, the output file contained an uppercase x instead of the lower case as expected, despite using the lower case in the command.I get the following error messages when I use the altered file to generate a genepred file:



-user defined attributes must start with a lower-case letter:X_AED


How can I change a letter within a file from upper to lower case.










share|improve this question









New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • Were the uppercase X’s already there? They should not even introduced by your sed command.
    – Jeff Schaller
    Oct 4 at 12:06










  • Th upper case X's were not there before, I introduced them because the
    – Yewon
    Oct 4 at 12:41










  • The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
    – Yewon
    Oct 4 at 12:53












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have used the following command to introduce a letter in front of underscores in my gff3 file as requested by the program i am using to generate a genepred file:



sed 's/;_/;x_/g' in.transcripts.gff3 > altered.transcripts.gff3


However, the output file contained an uppercase x instead of the lower case as expected, despite using the lower case in the command.I get the following error messages when I use the altered file to generate a genepred file:



-user defined attributes must start with a lower-case letter:X_AED


How can I change a letter within a file from upper to lower case.










share|improve this question









New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have used the following command to introduce a letter in front of underscores in my gff3 file as requested by the program i am using to generate a genepred file:



sed 's/;_/;x_/g' in.transcripts.gff3 > altered.transcripts.gff3


However, the output file contained an uppercase x instead of the lower case as expected, despite using the lower case in the command.I get the following error messages when I use the altered file to generate a genepred file:



-user defined attributes must start with a lower-case letter:X_AED


How can I change a letter within a file from upper to lower case.







command-line sed






share|improve this question









New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Oct 4 at 12:11









jimmij

29.5k867101




29.5k867101






New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Oct 4 at 11:53









Yewon

1




1




New contributor




Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Yewon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • Were the uppercase X’s already there? They should not even introduced by your sed command.
    – Jeff Schaller
    Oct 4 at 12:06










  • Th upper case X's were not there before, I introduced them because the
    – Yewon
    Oct 4 at 12:41










  • The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
    – Yewon
    Oct 4 at 12:53
















  • Were the uppercase X’s already there? They should not even introduced by your sed command.
    – Jeff Schaller
    Oct 4 at 12:06










  • Th upper case X's were not there before, I introduced them because the
    – Yewon
    Oct 4 at 12:41










  • The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
    – Yewon
    Oct 4 at 12:53















Were the uppercase X’s already there? They should not even introduced by your sed command.
– Jeff Schaller
Oct 4 at 12:06




Were the uppercase X’s already there? They should not even introduced by your sed command.
– Jeff Schaller
Oct 4 at 12:06












Th upper case X's were not there before, I introduced them because the
– Yewon
Oct 4 at 12:41




Th upper case X's were not there before, I introduced them because the
– Yewon
Oct 4 at 12:41












The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
– Yewon
Oct 4 at 12:53




The upper case X's were not there before. I introduced them because the gff3togenepred tool (which I was using to convert my gff3 file to a genepred intermediate) required that an attribute tag must start with an alphabetic character which was not the case with my original file where the attributes start with an underscore (_QI, _eAED, _AED). That is why I introduced a lower case x but it appears as an upper case x in the file. However, when I reun the command using the edited gff3 file, i get another message saying that user defined attributes must start with a lower case letter.
– Yewon
Oct 4 at 12:53















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Yewon is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473212%2fhow-can-i-introduce-a-lower-case-letter-before-an-underscore-in-a-gff3-file%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Yewon is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Yewon is a new contributor. Be nice, and check out our Code of Conduct.












Yewon is a new contributor. Be nice, and check out our Code of Conduct.











Yewon is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f473212%2fhow-can-i-introduce-a-lower-case-letter-before-an-underscore-in-a-gff3-file%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Bahrain

Postfix configuration issue with fips on centos 7; mailgun relay