Only show genes not located on X or Y chromosome - subset

Dear all,

Not sure what I am doing wrong, but I need your help.
I would like to exclude from my dataset any genes located on the X and Y chromosome.
I tried this, but still it is showing X and Y genes. Not sure why it is not working, has anyone an idea?


Thanks so much!

Use "and" (&) instead of "or" (|), otherwise the logical expression always evaluates to TRUE

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.

1 Like

Perfect it worked, thanks so much!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.